-3

Earlier it was launching the browser successfully but it now is not even appearing.

[main] INFO org.testng.internal.Utils - [TestNG] Running:
  E:\JenkinsPractice\Jenkins 1\testng.xml

[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 136.0.7103.113 (resolved driver for Chrome 136)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as C:\Users\yuvraj.chawda\.cache\selenium\chromedriver\win64\136.0.7103.113\chromedriver.exe
[main] INFO io.github.bonigarcia.wdm.online.Downloader - Downloading https://storage.googleapis.com/chrome-for-testing-public/135.0.7090.146/win64/chromedriver-win64.zip
[main] ERROR io.github.bonigarcia.wdm.online.HttpClient - Error HTTP 404 executing https://storage.googleapis.com/chrome-for-testing-public/135.0.7090.146/win64/chromedriver-win64.zip
[main] WARN io.github.bonigarcia.wdm.WebDriverManager - There was an error managing chromedriver 135.0.7090.146 (Error HTTP 404 executing https://storage.googleapis.com/chrome-for-testing-public/135.0.7090.146/win64/chromedriver-win64.zip) ... trying again using latest driver stored in cache
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 136.0.7103.113 (resolved driver for Chrome 136)
[main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as C:\Users\yuvraj.chawda\.cache\selenium\chromedriver\win64\136.0.7103.113\chromedriver.exe
2
  • So now it not working anymore HTTP 404 executing So use a different location ? Commented May 29 at 10:24
  • NO, it is just giving this error message in Eclipse and nothing is happening. Commented May 29 at 11:09

1 Answer 1

1

As of Selenium 4.6, Selenium Manager was added and it automatically takes care of downloading and configuring the appropriate driver for you. So, you no longer need to use a DriverManager or specify the path, etc.

You should be able to use just the code below to get a browser launched.

String url = "https://google.com/";
driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get(url);

// do something

driver.quit();

If the above doesn't work, check the internet connection from the machine you are running this script on. It's likely not able to see the internet so it can't download the appropriate driver resulting in the error you are getting. This is typically seen when running scripts in the cloud, etc.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.