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
1
vote
0 answers

How to run "selenium==4.0.0b2.post1" remote-driver on docker

I am currently trying to run Selenium Remote driver, version selenium==4.0.0b2.post1 on docker-compose in the port 6900. I can currently connect to selenium grid, but I cannot run the remote webdriver. My dockerfile is: # To execute this…
The Dan
  • 1,408
  • 6
  • 16
  • 41
1
vote
1 answer

Chrome/Java/Selenium4: authentication popup with RemoteWebDriver

I want to do some Java/Selenium4 test automation on a test-environment, which is protected by an authentication popup. This is not an alert, it's a Chrome popup: screenshot. In our framework we have two options: You run the test on your local…
1
vote
0 answers

Issue occurring while invoking the browser

I am getting the following error : Error: Unable to initialize main class SeleniumClass Caused by: java.lang.UnsatisfiedLinkError: ‘void sun.nio.fs.WindowsNativeDispatcher.initIDs()’ The environment details are: Selenium 3 ( occurring on 4 too) JDK…
1
vote
1 answer

Java Selenium webdriver expression finding dynamic element by ccs that starts with and ends with

I have the below HTML element that I need to find. Now, this "id" name is dynamic in the way that the int "0" at the end will change, but I know what it will be. The first int in "0-0" will also change, but it doesn't matter what it will be.
1
vote
1 answer
1
vote
2 answers

TypeError: Object of type RelativeBy is not JSON serializable error using Selenium 4's Relative Locator with Python 3

I am running Python 3.7.1 and Selenium 4.0.0a6. I want to use the new Relative Locator functions in Selenium 4 but always get a: TypeError: Object of type RelativeBy is not JSON serializable error. More specifically, I first call: the_name =…
1
vote
3 answers

org.openqa.selenium.TimeoutException: Supplied function might have stalled error using titleContains() with Selenium 4.0.0-alpha-5 and Java 11

Googling yielded nothing but source code on this timeout and I seem to have no visibility via logs looking at selenium source code. I am wondering if anyone else has run into this issue with selenium The condition we waited on was the…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
1
vote
0 answers

FAILED CONFIGURATION: @BeforeMethod setUp

I am trying to Page object Model project in maven using selenium with java and Testng and i have added all the dependency in pom.xml but after running the script i am facing some problem saying FAILED CONFIGURATION: @BeforeMethod setUp and i have to…
1
vote
1 answer

Should I worry about sending plain text passwords with selenium when testing web applications

I am working on a simple Javascript testing with Selenium Webdriver and Mocha scenario which logs into my production site, clears cache from the UI and thereafter logs out of the site. I understand that sending plain text passwords over https is…
adoubleyoueye
  • 77
  • 1
  • 4
  • 13
0
votes
2 answers

How to grab the second "span" ? - Selenium 4

I want to extract the title, subtitle and link of a website, but I encounter a problem. There are two spans after about 30-35 titles that cause a conflict and prevent me from getting any more titles. How can I solve this issue? Code: import…
0
votes
1 answer

QAF | Selenium 4 is not working with QAF version 3.2.0

I'm not able to use Selenium 4 with the QAF version 3.2.0. Url is not opening after browser open (Blank page). Test is working fine if I downgrade the selenium version to 3.141.59. Note: OS: Mac OSX Java Version: 17 I have tried Selenium version…
0
votes
2 answers

How to find an element by class in Selenium 4.8.0

I am currently trying to learn selenium with python and I am having a lot of problems with the function: browser.find_element_by_class_name('bob') I have also tried using: browser.find_element(By.CLASS_NAME, 'bob') where 'bob' is the class name…
0
votes
0 answers

Selenium 4 with multiple nodes

I am testing the upgrade from Selenium 3 to Selenium 4. I am having problems trying to start two nodes at the same time. These nodes have a .bat file that calls a .json file for its configuration. In Selenium 3, the start-node1.bat file is as…
sergio
  • 21
  • 4
0
votes
0 answers

How i can fix this warning org.openqa.selenium.remote.http.WebSocket$Listener onError WARNING: Connection reset

I have updated my project from selenium 3 to 4 after that i am getting this warning after test execution completes. org.openqa.selenium.remote.http.WebSocket$Listener onError WARNING: Connection reset java.net.SocketException: Connection reset …
0
votes
0 answers

How to clear Storage Key value in Selenium 4?

Selenium Webdriver 4.10.0 Using: using OpenQA.Selenium.DevTools.V114.Storage; Code: var devTools = Context.Driver as IDevTools; var session = devTools.GetDevToolsSession(); var command = new ClearDataForStorageKeyCommandSettings …