hi,

105 views
Skip to first unread message

Vishnu Kumar

unread,
Oct 7, 2024, 11:22:30 PM10/7/24
to Selenium Users
I cannot Automate chrome Browser using selenium but i can Automate Firefox.
I am getting this error

Oct 07, 2024 10:16:50 PM org.openqa.selenium.remote.service.DriverService findExecutable

WARNING: Unable to obtain driver using Selenium Manager: Unsuccessful command executed: [C:\Users\Vishnu\AppData\Local\Temp\selenium-manager1714805768314003136119346063585343\selenium-manager.exe, --driver, chromedriver]

WARN Error getting version of chromedriver 129. Retrying with chromedriver 128 (attempt 1/5)

WARN Error getting version of chromedriver 128. Retrying with chromedriver 127 (attempt 2/5)

WARN Error getting version of chromedriver 127. Retrying with chromedriver 126 (attempt 3/5)

WARN Error getting version of chromedriver 126. Retrying with chromedriver 125 (attempt 4/5)

WARN Error getting version of chromedriver 125. Retrying with chromedriver 124 (attempt 5/5)

ERROR The chromedriver version cannot be discovered

Build info: version: '4.8.1', revision: '8ebccac989'

System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '19.0.2'

Driver info: driver.version: ChromeDriver

Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://chromedriver.chromium.org/. The latest version can be downloaded from https://chromedriver.chromium.org/downloads

at org.openqa.selenium.internal.Require$StateChecker.nonNull(Require.java:314)

at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:149)

at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:42)

at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:315)

at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:456)

at org.openqa.selenium.chrome.ChromeDriverService.createServiceWithConfig(ChromeDriverService.java:165)

at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:71)

at testcases.Sample.main(Sample.java:13)

Vinaysimha Varma Yadavali

unread,
Nov 10, 2024, 7:19:05 AM11/10/24
to Selenium Users

This error indicates that Selenium is unable to locate or use the correct version of ChromeDriver. Here’s how you can resolve it:

  1. Download the Latest ChromeDriver:

    • Go to the ChromeDriver download page and download the ChromeDriver version that matches your installed Chrome browser version.
    • You can find your Chrome version by opening Chrome and going to chrome://settings/help.
  2. Set the Path to ChromeDriver:

    • Place the downloaded chromedriver.exe file in a location on your computer (e.g., C:\path\to\chromedriver.exe).
    • Add the path to ChromeDriver in your code using the webdriver.chrome.driver system property. For example:
      java
      Copy code
      System.setProperty("webdriver.chrome.driver", "C:\\path\\to\\chromedriver.exe"); WebDriver driver = new ChromeDriver();
  3. Update Selenium to the Latest Version:

    • Sometimes compatibility issues between Chrome, ChromeDriver, and Selenium can cause problems. Updating to the latest version of Selenium (as of this writing, you can try Selenium 4.10 or newer) may resolve the issue.

ddlionx

unread,
Nov 10, 2024, 8:14:46 AM11/10/24
to seleniu...@googlegroups.com
please stop replying to issues with ai generated slop

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/1a5d1c97-5ca8-45fd-9261-13159dcaa5f3n%40googlegroups.com.

AMITESH SRIVASTAVA

unread,
Nov 10, 2024, 9:12:46 AM11/10/24
to seleniu...@googlegroups.com
Hello Vishnu,

After recent changes by chrome browser they have segregated the "chrome for testing" with regular chrome browser so you need to download the latest version of chromedriver with below link for all the versions after v114, selenium manager won't be able to get the chrome for versions after v114.





samhitha prayaga

unread,
Nov 28, 2024, 1:44:42 PM11/28/24
to Selenium Users
Hello All,
I am Madhu, I have learnt Selenium, java along with TestNG, Cucumber, Data Driven Frameworks. I want to get real time experience, can someone tell me how can I gain the real project experience. If you could help me gaining real time project experience, I would appreciate you. Thank you so much.
Reply all
Reply to author
Forward
0 new messages