+ 我要发布
我发布的 我的标签 发现
浏览器扩展
斑点象@Edge

selenium.common.exceptions.SessionNotCreatedException: Message: Could not create a session: You must enable the 'Allow Remote Automation' option in Safari's Develop menu to control Safari via WebDriver.

browser = webdriver.Chrome() 初始化后报错 ``` selenium.common.exceptions.SessionNotCreatedException: Message: Could not create a session: You must enable the 'Allow Remote Automation' option in Chrome's Develop menu to control Chrome via WebDriver. ``` 原因是selenium模式的客户端是对浏览器进行操作,但相对应的浏览器的驱动版本不匹配导致的这种情况,可是是在你配置之后,浏览器又更新了版本所以导致的Bug。 解决方法:重新下载适配的ChromeDriver。 ``` ChromeDriver下载路径:https://registry.npmmirror.com/binary.html?path=chromedriver/ ```
我的笔记