public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:/Users/myPC/Desktop/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com");
}
So I downloaded chromedriver.exe and tried opening Chrome using the following code, but every time I run this code I get the following error:
Error:java: package com.google.common.collect does not exist
And also whenever I try and run chromedriver.exe from desktop, chrome does not want to open.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire