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

38 questions
14
votes
4 answers

Disable cache in Selenium Chrome Driver

I’m using the Selenium ChromeDriver in order to measure performance of web pages. But by default in Chrome driver cache is enabled. Option --disable-application-cache is deprecated now https://code.google.com/p/chromium/issues/detail?id=447206 Also…
9
votes
3 answers

Timeout exception when using dev tools with selenium-java-4.0.0 and chromedriver v85

I'm trying to use selenium dev tools java API, and for multiple API methods I'm getting java.util.concurrent.TimeoutException. For example I'm trying to use Network.clearBrowserCache, which should work accroding to chromedriver docs:…
9
votes
5 answers

What Is Selenium And What Is WebDriver?

What is Selenium? When you open the official page of the Selenium, the first thing you read is "Selenium automates browser" in "What is Selenium?" section. The section "Which part of Selenium is appropriate for me?" below offers the choice between…
3
votes
1 answer

How to use Chrome DevTools protocol in Selenium (using Python) for capturing HTTP requests and responses?

I know that Fetch Domain is used for this purpose but I do not know how exactly I can implement it. In Selenium python, I used the following code to enable issuing of requestPaused…
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
  • 173
  • 2
  • 12
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
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
  • 5
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
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
5 answers

How to click on an input element using Selenium and Python

I'm trying to click on the tab with text as Python within the Selenium documentation website. HTML: But I'm facing…
DebanjanB
  • 118,661
  • 30
  • 168
  • 217
1
vote
1 answer

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…
1
vote
1 answer
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
  • 43
  • 1
  • 3
  • 11
1
2 3