文章分类 - selenium
摘要:https://blog.csdn.net/m0_37256774/article/details/80916452 1、#通过执行js打开新的标签页js='window.open("https://www.sogou.com");'driver.execute_script(js) 2、#覆盖之前
阅读全文
摘要:https://python-selenium-zh.readthedocs.io/zh_CN/latest/4.%E5%85%83%E7%B4%A0%E5%AE%9A%E4%BD%8D/ 元素定位 我们有许多方法对页面的元素进行定位,你可以根据自己的需要选择最合适的一种。Selenium提供了下面
阅读全文
摘要:from selenium import webdriverimport timedriver = webdriver.Firefox()driver.get('https://www.baidu.com')time.sleep(3)try: assert "百度一下" in driver.titl
阅读全文
摘要:转自:https://www.cnblogs.com/zuodaozhudemeng/p/7487798.html 以百度首页为例: 定位输入框 一:单一属性定位 1:type selector driver.find_element_by_css_selector('input') 2:id 定位
阅读全文
摘要:https://www.cnblogs.com/liyuhang/p/6535840.html 首先,感谢MrCandy的【selenium学习笔记一】python + selenium定位页面元素的办法。一文,在该文章中找到了解决我当前遇到问题的方法。 遇到的问题描述: 简单的的编写一个登录的脚本
阅读全文
摘要:https://blog.csdn.net/qq_29186489/article/details/78661008控制火狐浏览器,访问百度,并搜索关键词Python,获取搜索结果from selenium import webdriverfrom selenium.webdriver.common
阅读全文
摘要:转载 https://www.cnblogs.com/nancyzhu/p/8589764.html Chrome 点击下载chrome的webdriver: http://chromedriver.storage.googleapis.com/index.html 不同的Chrome的版本对应的c
阅读全文
摘要:转载 https://www.cnblogs.com/imyalost/p/7242524.html 联系 管理 随笔 - 199 文章 - 0 评论 - 228 联系 管理 随笔 - 199 文章 - 0 评论 - 228 联系 管理 随笔 - 199 文章 - 0 评论 - 228 随笔 - 1
阅读全文

浙公网安备 33010602011771号