1
votes

I'm trying to just open Google website from my java class to test selenium.

System.setProperty("webdriver.chrome.driver", "********\\chromedriver.exe");
// Create an instance of the driver

WebDriver driver = new ChromeDriver();

driver.get("http://www.google.com");

Starting ChromeDriver 75.0.3770.90 (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003}) on port 36521. Only local connections are allowed.

Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: failed to write automation extension zip

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'

System info: host: 'USLOSULA91634G5', ip: '10.18.71.46', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_131'

Driver info: driver.version: ChromeDriver

1
It is probably outdated driver or "********\\chromedriver.exe" is incorrect pathMyszsoda
possibly a permissions issue. Are you able to launch Chrome manually?pcalkins
Yes, manually, it works just fine.geeky_girl
Try download latest version of selenium driver here: sites.google.com/a/chromium.org/chromedriver/downloads. And by the way, you sure your chromedriver was unziped?Roberto
i have the latest sel driver and yes, chromedriver is unzippedgeeky_girl

1 Answers

0
votes

It turns out, i had lot of security restrictions on my computer.I had to place the selenium webdriver.exe in a folder where i had full access to it. Thanks to everyone who tried.