赞
踩
如果不匹配的话,可以去以下网址下载https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
- from selenium import webdriver
- from selenium.webdriver.edge.service import Service
-
- #设置浏览器参数
- option = webdriver.EdgeOptions()
- option.add_experimental_option("detach", True)
-
- #打开浏览器驱动
- s = Service(executable_path=r'C:\python\MicrosoftWebDriver.exe')
- #把浏览器参数传入到网页驱动
- web = webdriver.Edge(options=option,service=s)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。