摘要: 1可以用try...except...捕获异常 2从selenium.common.exceptions导入NoSuchElementException类 #coding:utf-8from selenium import webdriverfrom selenium.common.exceptio 阅读全文
posted @ 2021-04-01 17:28 caojuanshu 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-04-01 16:14 caojuanshu 阅读(150) 评论(0) 推荐(0) 编辑