随笔分类 -  selenium

摘要:1、查看谷歌版本和chromedriver版本是否一致: 手动查找ChromeDriver路径。在终端中输入以下命令: which chromedriver 这将输出ChromeDriver的路径,例如: /usr/local/bin/chromedriver 可以在Chrome浏览器中输入以下网址 阅读全文
posted @ 2023-06-09 10:49 爱家家的卡卡 阅读(1038) 评论(0) 推荐(0) 编辑
摘要:chrome://version/ 可执行文件路径 /Applications/Google Chrome.app/Contents/MacOS/Google Google\ Chrome --remote-debugging-port=9222 --user-data-dir="~/ChromeP 阅读全文
posted @ 2023-02-27 16:04 爱家家的卡卡 阅读(69) 评论(0) 推荐(0) 编辑
摘要:import datetime import time import json import self as self import MessageToSlack import os import pymysql.cursors import random import sys import und 阅读全文
posted @ 2023-01-14 14:35 爱家家的卡卡 阅读(18) 评论(0) 推荐(0) 编辑
摘要:import datetime import time import json import self as self import MessageToSlack import os import pymysql.cursors import random import sys import und 阅读全文
posted @ 2023-01-13 18:54 爱家家的卡卡 阅读(67) 评论(0) 推荐(0) 编辑
摘要:def date_choose(): # 定义JS去除日期控件的只读属性,让其可输入 self.driver.execute_script ('document.querySelector("#c-text-69").removeAttribute("readonly");') # 使用webdri 阅读全文
posted @ 2023-01-13 15:39 爱家家的卡卡 阅读(400) 评论(0) 推荐(0) 编辑
摘要:# 获取拖动按钮位置并拖动 def slide_auth(self): try: time.sleep(random.randint(6, 8)) # check have slide verify elements or not if (self.driver.find_element(By.ID 阅读全文
posted @ 2023-01-11 10:21 爱家家的卡卡 阅读(77) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示