无效的端口.在线程"main"中退出..Exception. org.openqa.selenium.WebDriverException:驱动程序服务器进程过早地终止了ChromeDriver Selenium [英] Invalid port. Exiting..Exception in thread "main" org.openqa.selenium.WebDriverException: Driver server process died prematurely ChromeDriver Selenium
问题描述
我已经安装
- java版本:1.8
- 硒罐版本:3.141.59,
- chrome浏览器版本:84.0.4147.89.
- java version : 1.8
- selenium jar version : 3.141.59,
- chrome browser version : 84.0.4147.89.
我想使用Selenium Web驱动程序测试用例在chrome浏览器中启动google.但由于上述附带的问题,我无法启动.
I want to launch the google in chrome browser using selenium web-driver test case. But I am not able to launch due the above attached issue.
请帮助我解决此问题.
推荐答案
您需要更新exe版本 https://chromedriver.chromium.org/downloads 在此链接中,您可以下载驱动程序exe并在路径中设置
You need to update your exe version https://chromedriver.chromium.org/downloads in this link you can download driver exe and set in path
您可以杀死chrome exe并刷新并重新运行吗(请注意打开cmd并粘贴此行,然后输入 taskkill/im chromedriver.exe/f 并重新运行项目
Can you kill chrome exe and refresh and rerun ( note open cmd and paste this line and enter taskkill /im chromedriver.exe /f and rerun project
请导入导入org.openqa.selenium.chrome.ChromeDriver;
这篇关于无效的端口.在线程"main"中退出..Exception. org.openqa.selenium.WebDriverException:驱动程序服务器进程过早地终止了ChromeDriver Selenium的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!