updgrade in you chrome browser which leads to updating chromedriver.
I still work on chrome version 85 to disable the chrome update you need to
Go to application-> search chrome driver -> Right click->show packaged content
Open contents
-> go to frameworks->Google chrome framework.framework->versions-> remove folder with name “Current” Its not visible in below screenshot as it already removed
This will stop updating your chrome driver
and place it in the folder where your eclipse workspace is created, to do that
First Go to eclipse Right click on the project-> go to properties
command+shift+G. (pointing cursor in desktop)
paste the path " /Users/priyankac/Documents/workspace"
To do so got to the top menu and click on "Go"-> "Go to folder"
enter usr/local/bin in search bar and click on "Go"
Run the simple code to check if your chrome is working
public class Multiplewindows {
WebDriver driver;
@Test
public void test1() throws InterruptedException {
System.setProperty("Webdriver.chrome.driver", "chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.flipkart.com");
System.out.println(driver.getTitle());
}
}Y
Comments
Post a Comment