上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 80 下一页
摘要: 背景知识1 ActionChains库 它的缩写来自于以下单词:Action(动作)和Chains(链) 背景知识2 ActionChains 提供了更多灵活的鼠标和键盘操作选项,可以用于处理更复杂的场景,如果 click() 方法无法生效,可以尝试使用 ActionChains 来模拟点击事件。在 阅读全文
posted @ 2023-10-08 17:07 胖豆芽 阅读(376) 评论(0) 推荐(0)
摘要: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver import Keys from time import sleep # 实例化驱动对象 driver 阅读全文
posted @ 2023-10-08 15:43 胖豆芽 阅读(64) 评论(0) 推荐(0)
摘要: from selenium import webdriver from selenium.webdriver.common.by import By # 实例化驱动对象 driver=webdriver.Chrome() def get_color(loc): color=driver.find_e 阅读全文
posted @ 2023-10-08 15:32 胖豆芽 阅读(129) 评论(0) 推荐(0)
摘要: 遇到问题 html 中定位的下拉框内容是属性是隐藏的 <ul id="reasonselect" style="display: none" fwin="mods"> <li>广告/SPAM</li> <li>恶意灌水</li> <li>违规内容</li> <li>文不对题</li> <li>重复发 阅读全文
posted @ 2023-10-08 12:57 胖豆芽 阅读(258) 评论(0) 推荐(0)
摘要: 背景知识1 在使用WebDriver时,常见的一些Options选项包括以下几种: add_argument(argument):向浏览器传递额外的参数。常用的参数包括: "--headless":以无界面模式运行浏览器。 "--disable-gpu":禁用GPU加速。 "--start-maxi 阅读全文
posted @ 2023-10-07 22:54 胖豆芽 阅读(394) 评论(0) 推荐(0)
摘要: C:\Program Files (x86)\Google 改update名字,改权限 阅读全文
posted @ 2023-10-07 22:48 胖豆芽 阅读(61) 评论(0) 推荐(0)
摘要: 在浏览器的导航输入命令: chrome://version/ 找到个人资料路径 阅读全文
posted @ 2023-10-07 20:38 胖豆芽 阅读(214) 评论(0) 推荐(0)
摘要: 优化后的代码# 导包 from selenium import webdriver from selenium.webdriver.common.by import By from time import sleep from selenium.webdriver.chrome.options im 阅读全文
posted @ 2023-10-07 15:15 胖豆芽 阅读(32) 评论(0) 推荐(0)
摘要: 背景知识1 选择满足多个条件的元素节点: //标签名[条件1 and 条件2] //div[@class="example" and @id="demo"]:选择所有具有class属性值为example且id属性值为demo的div元素节点。 背景知识2 如果要选择以特定字符串结尾的id属性的元素节 阅读全文
posted @ 2023-10-07 15:11 胖豆芽 阅读(46) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-07 13:25 胖豆芽 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 80 下一页