Questions tagged [selenium4]

Selenium 4.0 is a new version of open-source tool/framework for automating web browsers. When using this tag, also include other tags for the specific components you are using, e.g. gecko driver. It does support all latest browsers.

Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers.

Selenium 4.0 is the upcoming new version of .


Change Logs

Link to the changelongs of the selenium clients:


Reference Links

195 questions
2
votes
2 answers

How to setup Selenium 4 for old Chrome version?

By some project reasons I have to use Selenium 4 (4.0.0-rc3) and Chrome version 71. Of course the current chromedriver (version 94) doesn't work with old chrome. I have downloaded the source code of chromium project for debugging and try to…
Paul Ian
  • 21
  • 1
2
votes
1 answer

Turn off browser logging from webdrivers in Selenium 4

I'm working on a Java (11) project where we need to do some testing using Edge-Chromium (which is running on Linux via a docker container), so I've had to upgrade the version of Selenium we are using to 4.0.0-beta-4. I've managed to get this bit…
2
votes
0 answers

Getting Exception "java.lang.NoSuchMethodError: org.openqa.selenium.WebElement.getDomAttribute(Ljava/lang/String;)Ljava/lang/String;" in selenium 4

I am using selenium "4.0.0-rc-2" with chrome 89 . While selecting value from drop down using select class, getting exception: "java.lang.NoSuchMethodError: org.openqa.selenium.WebElement.getDomAttribute(Ljava/lang/String;)Ljava/lang/String;".
V Sri
  • 21
  • 3
2
votes
1 answer

Selenium 4.0.0-B Grid, GRID_BROWSER_TIMEOUT not working properly

I am using Selenium 4 (python) to execute a browser on SE Grid with Docker-compose. When I previously executed it while I was working with Selenium 3, the GRID_BROWSER_TIMEOUT=1500, it used to work perfectly, but now when I changed to Se…
The Dan
  • 1,408
  • 6
  • 16
  • 41
2
votes
1 answer

How to use ExpectedConditions in Selenium 4?

In selenium 4, you can wait for an element's presence but I am unable to find alternates if I want to wait for an element to become invisible or Clickable, or an alert to appear. Following mentioned statements are not working in selenium 4 as this…
2
votes
3 answers

Locate an element using selenium xpath

I am trying to locate an element that has the following line in the chrome inspect code, . My line is: driver.find_element(By.xpath("//a[@href='/app/arp/home/profile']")).click() But I get the following…
PChao
  • 417
  • 2
  • 5
  • 17
2
votes
1 answer

C# Selenium 4: Setup request interception

I'm trying to use Selenium 4 to log requests during manual usage of Chrome browser. The issue is that request interception stops after around 40 seconds of usage (approximately). I've tried to change commandTimeout but it didn't change…
2
votes
2 answers

Enabling Cookies in Chrome version 86 using Selenium

I am trying to use Selenium with Java with update chrome version 86 for automation, but it shows third-party cookies disable. The site I am working on needs 3rd party cookies. I tries to enable cookies using following code: ChromeOptions options…
2
votes
0 answers

Java program is not terminating when using Selenium Webdriver

As described in the question, when i initialize an instance of selenium web driver, my java program does not close after the main method has finished running. I am using the sample code from the official Selenium documentation: public static void…
Jerry
  • 65
  • 6
2
votes
1 answer

How to get .har file or network request using selenium4

As we know One of the features added in the new version of Selenium (4.0.0-alpha-2) is a very nice Interface for Chrome DevTools API in Java.DevTools API offers great capabilities for controlling the Browser and the Web Traffic As per documentation…
Zakaria Shahed
  • 2,589
  • 6
  • 23
  • 52
2
votes
1 answer

How to fix DesiredCapabilities in Selenium 4.0

I have a piece of code which sets browser name for the grid. However, DesiredCapabilities is deprecated in Selenium 4.0. How can I fix this code so that it works as the same in 4.0? DesiredCapabilities capabilities = new DesiredCapabilities(); if…
user3379369
1
vote
1 answer

Selenium 4 with ChromeDriver crashing when running multiple drivers

When running the below simple example against Selenium 4.11, at some iteration in the loop the program will fail to get a new ChromeDriver instance with the following message: Exception in thread "main"…
1
vote
1 answer

Getting java.lang.UnsupportedOperationException: getDomAttribute for Select in Selenium 4

I am etting java.lang.UnsupportedOperationException: getDomAttribute for Select in Selenium 4.. Does anyone know how to resolve this issue? my selenium version is 4.6.0. Tried multiple things but nothing…
1
vote
0 answers

how to resolve error Invalid Status code=403 text=Forbidden in selenium 4

`Facing error while launching chrome driver. WebDriverManager.chromedriver().setup(); ChromeDriver driver = new ChromeDriver(); driver. manage().window().maximize(); Not working to launch chrome driver.`
1
vote
0 answers

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/AbstractDriverOptions - Selenium 4

Hi, I tried all possible solutions but I am keep getting exception.My requirement is to use EdgeOptions to add extension in browser before running scripts for that I am using Selenium 4.x.x Caused by: java.lang.ClassNotFoundException:…
1 2
3
12 13