摘要:
1可以用try...except...捕获异常 2从selenium.common.exceptions导入NoSuchElementException类 #coding:utf-8from selenium import webdriverfrom selenium.common.exceptio 阅读全文
摘要:
1 元素定位参数化 find_element 定位方法: by_id="id" by_xpath="xpath" by_link_text="link text" by_partial_text="partial link text" by_name="name" by_tag_name="tag 阅读全文