The WebDriver Manager for Selenium Automation is experiencing issues with the latest Chrome update, version 116

I implemented the selenium framework and included this dependency. However, I encountered an issue where the browser wasn't being invoked due to Chrome version 116.

<dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>5.4.1</version>
</dependency>

I expected the Chrome browser to be automatically invoked.

Answer №1

Here's a quick fix: Update your selenium version to v4.11.0 in your POM.xml file like this:

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.11.0</version>
</dependency>

With the latest version of selenium, you no longer need to use webdrivermanager. The built-in tool SeleniumManager does what WDM used to do (i.e. downloading and managing driver.exe). If you're using the latest selenium version, your code can be as simple as:

public static void main(String[] args) {
    // TODO Auto-generated method stub
    WebDriver driver = new ChromeDriver();
    driver.get("https://www.google.com");        
    System.out.println(driver.getTitle());
}

Answer №2

To utilize WebDriverManager 5.4.1, Java version 11 or above is required.

Answer №3

I'm facing the same issue after upgrading to version 4.11.0. The error message "java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property" persists even after the update. For more information, you can visit https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. To download the latest version, go to https://chromedriver.storage.googleapis.com/index.html.

Update: I managed to resolve the issue by specifying the following in properties:

<selenium.version>4.11.0</selenium.version>

Otherwise, an older version of selenium was being utilized.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The button in question is unresponsive to Selenium WebDriver's click() function

Python is a new language for me, and I've been using it to create web scrapers that automate tasks like checking for new project postings. I recently wrote a web scraper using Selenium to log into a website and search for new postings in multiple prod ...

Convert a CSV file into JSON format using RxJava2

[UPDATED] Greetings I am faced with the task of converting the data from a CSV file into JSON format based on a Java class, using RxJava2. To illustrate, here is an example of how the CSV file is structured: 1,John,Smith The Java class called User has ...

Python and Selenium experts, seeking advice on the best methods for validating table data

I have a table that I am able to loop through and display the contents of each cell. Now, I am seeking suggestions on how to validate the content of each of the cells within a table that has dimensions of 10 columns by 20 rows. Below is the code snippet f ...

Handling alert, confirm, and popup events in C# using Selenium

Despite extensive research, I have yet to find a solution that addresses the specific issue at hand. Our team is utilizing Selenium with C#. The main problem we are facing is our inability to control alerts, which may be due to their quick disappearance: ...

Mastering the complexities of handling nested frames is a

click here for image description Struggling to access a nested frame within a frame with the following code snippet: driver.get("https://www.leafground.com/frame.xhtml"); //frame 1 click and show text driver.switchTo().frame(0); WebElement frame1 = driver ...

Tips for resolving SSL certificate errors when using Selenium WebDriver with Internet Explorer

Currently, I am a beginner in utilizing Selenium Web Driver with Java. Successfully launching an application, but encountering SSL certificate errors. Seeking guidance on how to address this obstacle as I continue to learn and prepare for implementation at ...

In one class, I defined the Properties files and set up the Webdriver object. I plan to utilize this Webdriver object within the same package or possibly in another

A situation has arisen where I have properly set up Properties files and initialized the Webdriver object in a particular class. Now, my aim is to utilize this Webdriver object either within the same package or in another package. Can you guide me on how t ...

The button elicited no response

Within my HTML document, I have a table implementation: <h:form id="form"> <p:dataTable id="table" styleClass="table" value="#{userMB.allAdmins}" var="admin" paginator="true" rows="15" rowKey="#{admin.id}" selection="#{userMB.user ...

Encountering sporadic EACCES issues while executing selenium tests in the AVA framework

Encountering errors on Windows 10 1809 while using Chrome for testing purposes. Error message 1 Frequency: Occurs approximately every 50th driver instantiation. [...]project\node_modules\selenium-webdriver\net\portprober.js:159 ...

How can I prevent a webpage from opening in a new tab using Selenium Webdriver with Python?

I am currently extracting data from this website : The webpage contains multiple links. Users need to click on these links using selenium web driver. However, the issue is that when a link is clicked, it opens in a new tab due to the "_target=blank" attri ...

Deactivating the PDF Viewer extension on Google Chrome driver

I need to bulk download numerous files within the BlackBoard platform, commonly used in universities and schools worldwide. I have managed to grab the links to where the files are located, but there is a major inconvenience: When the file format is .pdf, ...

Error in main thread: org.openqa.selenium.WebDriverException - $ is not defined

Acquiring a CSS selector by ID is resulting in an error when I invoke the getCSS method: UpdateActualPath actualPath= new UpdateActualPath(); actualPath.getCSS("https://www.google.co.in/", "a"); This is the code snippet: import java.io.IOException; ...

We encountered an issue in finding the element with the following properties: {"method":"xpath","selector":"//input[@id='fieldname3_1']"

Looking for a way to find an element using Python Selenium 4. Here is my code: x = s.find_element(By.XPATH,"//input[@id='fieldname3_1']") https://example.com/arbitrage-betting-calculator/ Link to the page The HTML snippet is as follows: <in ...

Building JSON structures

As a beginner with JSON, I find myself getting confused each time I attempt to create a new one. My latest challenge involves creating a JSON array structured like this: { "id": "2003", "HouseMD" : { "Doctor_1": "Thi ...

`Can you explain the significance of selenium chromeDriver's port?`

When only specific ports (53, 443, 80) are open as per company policy, the Selenium ChromeDriver may encounter issues with port configuration. In such cases, manually setting the port to 4444 and adding it to the firewall exceptions can help resolve startu ...

Tips for excluding text from `<script>` tags in the HTML DOM when using the `element.getText()` method

Currently, I am utilizing Selenium with Java to conduct tests on an HTML page. To illustrate, here is a snippet of HTML code: <a> Return to homepage <script> <form>...</form> </script> </a> My main objective ...

Employing variables as selectors in Selenium 2 Webdriver using the by.cssselector technique

I am currently developing automated tests using Selenium 2 Webdriver in C# within Visual Studio 2010. Despite my diligent efforts, I have been unable to locate any functional examples of utilizing variables as selectors. The only instance I came across inv ...

Executing Protractor tests on PhantomJS using the Selenium standalone jar,

I've been encountering some issues while trying to run protractor tests on phantomjs using the selenium-standalone-server.jar. The error keeps popping up even though I'm running this on ubuntu 14.04. Below is a snippet from my protractor-config. ...

Utilizing Selenium to traverse through nested loops and extract data from multiple tables

I am currently working on a project that involves extracting data from multiple tables on a website. So far, I have managed to extract data from one table successfully. However, I am struggling with creating a loop to retrieve data from all tables with the ...

What is the best method for accessing a local html file using Selenium Safari WebDriver on macOS?

I attempted: safariDriver.get("file:///Users/pathToMyHtml/index.html"); safariDriver.get("/Users/pathToMyHtml/index.html"); Unfortunately, neither of these methods were successful. I am using Java on a macOS Sierra system. (Interestingly, if the page is ...