10 2021 档案

摘要:前提代码路径都对,定位元素不存在 dri.find_element(By.XPATH,'//*[@id="submitButton"]/span').click() sleep(2) dri.find_element(By.XPATH,"//span[contains(text(),'按钮')]") 阅读全文
posted @ 2021-10-21 17:06 我真的不会! 阅读(703) 评论(0) 推荐(0)
摘要:一、Selenium安装 1. Python3.x安装后就默认就会有pip(pip.exe默认在python的Scripts路径下),打开 cmd,使用pip安装selenium: pip install selenium 2. 可使用以下命令查看是否安装成功: pip show selenium 阅读全文
posted @ 2021-10-10 23:10 我真的不会! 阅读(88) 评论(0) 推荐(0)