我已经安装了必需的软件包才能在eclipse上对java selenium进行编码,并且我的代码已经运行了3-4个星期。但是,它不适用于特定的wifi连接。当我尝试在不同的wifi上运行相同的代码时,它可以工作。
Chrome浏览器版本:75.0.3770.100 Chromedriver版本:75.0.3770.90
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created
from disconnected: unable to connect to renderer
(Session info: chrome=75.0.3770.100)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'MacBook-Pro-3.local', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
我删除了chromedriver,然后重新下载了。
System.setProperty("webdriver.chrome.driver",
"/Users/omermuhit/Downloads/chromedriver 4");
WebDriver driver = new ChromeDriver();
driver.get("http://www.qaclickacademy.com/practice.php");
预期结果只是调用chrome浏览器并访问网站