Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
8.0k views
by The go-to Tester (360 points)

I am running test on Chrome browser previously it was working but today suddenly starting getting issue,

Chrome browser launching but URL not opening Browser. below is the configuration of Chome.

 

System.setProperty("webdriver.chrome.driver", "{Absolute path} +/src//test//resources//webdriver/chromedriver.exe");
driver = new ChromeDriver();

 

 

2 Answers

1 like 0 dislike
by

i am facing the same Error, please help me in this regards

System.out.println(System.getProperty("user.dir"));

System.setProperty("webdriver.chrome.driver",System.getProperty("user.dir")+"\\chrome\\ChromeDriver.exe");

/*WebDriver driver = new ChromeDriver();
WebDriver test12 = new ChromeDriver();

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

WebDriver driver = new ChromeDriver();
//driver.manage().window().maximize();

driver.get("https://www.google.com");
0 like 0 dislike
by The go-to Tester (181 points)
There are two possibilities I can think of.

 

1. Your absolute path to the chrome driver may not be valid now. Kindly cross check if you absolute path to the chrome driver you have mentioned is valid.

2. If your your chrome browser is upgraded, you may have to download new chromedriver.exe and update it. Chrome is always set to be updated, you can not stop it. In that case, you will have to update your chromedriver.exe file.

 

If you are facing specific error or issue, let us know.
...