''' //windows cd到chrome所在的文件夹下,再以debug模式启动 chrome.exe --remote-debugging-port=9527 --user-data-dir=“D:\pycharm\zdh_rxy" --remote-debugging-port远程控制接口 --user-data-dir为项目目录 ''' from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By import time import 观看 options = Options() options.add_experimental_option("debuggerAddress", "127.0.0.1:9527") chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" s = Service(chromedriver) browser = webdriver.Chrome(service=s, options=options)
while(True):
(操作内容。。。)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。