我进入控制台:
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
当我在 macbook 上使用 Chrome 驱动程序运行 Selenium Junit 测试时。我检查了这是我在 chrome 浏览器版本中使用的正确驱动程序。我从操作系统收到一条安全警告,说
chromedriver.exe
的编辑器未知。我在设置中授予了访问权限,但没有进行任何更改。
我尝试了所有可能的方法来导入 chrome 驱动程序,在具有绝对路径的本地机器上,使用
WebDriverManager
等。
不是版本问题,我用的Chrome v110
.