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
0
votes
2 answers

Why does this Selenium code does not work using Python while trying to target login

I am trying to target this bit of code to click a login button This is my python code PATH = "C:\Program Files (x86)\chromedriver.exe" driver =…
0
votes
1 answer

Selenium 4 error in selecting from dropdown

Since updating to Selenium 4.1.2, my tests fail when selecting a value from dropdown using all options: by value, index and visible text. See error below: "JavaScriptException: Cannot click on option element. Executing Javascript click function…
Glenn P
  • 37
  • 8
0
votes
1 answer

Why does opt.add_argument('--user-data-dir='+r'path') work but opt.add_argument('--user-data-dir='+fr'"{path}"') doesn't as an option to Selenium?

I have realized of something very weird when trying to deploy a chrome driver using --user-data-dir and --profile-directory from the user on Python 3.9.7, see below: If you compile the following code: from selenium import webdriver from…
NoahVerner
  • 937
  • 2
  • 9
  • 24
0
votes
1 answer

Starting Selenium Grid with Selenium 4 for C#

I am having issues running Selenium Grid from Visual Studio from Csharp using Selenium 4. I keep getting the error: Message: System.InvalidOperationException : Could not start a new session. Could not start a new session. Error while creating…
user5199
  • 359
  • 2
  • 15
0
votes
1 answer

Selenium 4.0.0 - Passing Username and password through URL in Firefox browser

Is it possible to pass Username and password through URL in Firefox browser for Selenium 4.0.0 version? I am able to pass through selenium 3.141.59 version but not able to pass through Selenium 4 version. Also I can able to pass to Chrome and edge…
0
votes
1 answer

Selenium java+browsermob proxy i wanted to extract separate har file from the pages that my selenium script hits

I have 3 pages to navigate page1, page2 and page3. I wanted to capture 3 separate HAR file. i tried the below code when it visit page1 its extracted page one performance data in har file and when i visited page2 its extracted page1 and page2 data…
0
votes
0 answers

Unable to export scrapped data to excel file using Apache POI

I am scraping network traffic data using Selenium v4 and exporting it to an excel file using Apache POI. I am able to print scraped data in console using the println statement, however, I am not able to export all the data that the script scraped.…
0
votes
0 answers

Selenium run same test on different platforms in parallel

I have three classes with different tests that I want to execute on chrome browser. The most important thing is that I want to run in parallel on Windows and macOS. How should I do it on Selenium 4 with Hub - > node setup? My testng file looks like…
dotBeThere
  • 13
  • 4
0
votes
0 answers

C# Selenium 4 - Network requests interception doesn't work in Azure pipeline

I'm trying to extract the JWT within requests we have in our system. When I'm running locally it works great, the code intercepting all requests... When code runs by Azure Pipeline, no requests were intercepted, empty. private static void…
0
votes
1 answer

Selenium4 is returning 'ELEMENTS' Dictionary rather than actual elements

Selenium4 is returning 'ELEMENTS' Dictionary rather than actual elements For example when I try driver.find_elements(By.XPATH,'//input') I get the dictionary of invalid elements like…
Ajay Suwalka
  • 549
  • 1
  • 7
  • 24
0
votes
0 answers

Does selenium 4 evolutions work for chrome 95?

When I execute this code : ChromeDriver driver = new ChromeDriver(); //40 3 DevTools devTools = driver.getDevTools(); devTools.createSession(); Mapcoordinates = new HashMap(); coordinates.put("latitude",…
MounaG
  • 15
  • 4
0
votes
2 answers

Selenium grid 4 : Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure error

Trying to set up selenium 4 grid with the below docker-compose file but getting the "Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure" error and need some help to fix the…
Dhamo
  • 1,171
  • 3
  • 19
  • 41
0
votes
1 answer

Selenium4: "The method newWindow(WindowType) is undefined for the Type WebDriver.TargetLocator"

I'm trying to play with the Selenium 4 features in eclipse with java but can't seem to get them to work, which i'm assuming must be my mistake in configuration, so I'd appreciate if anyone can explain where i'm going wrong and how I can correct…
Stephen
  • 13
  • 5
0
votes
1 answer

How do I return boolean value from ExpectedCondition objects

I do have a method that waits for the JavaScript to load in the browser. From Selenium 3 (3.141.59), I have shifted to Selenium 4 (4.0.0-alpha-7) This return code/statement doesnt work with Selenium 4 return wait.until(jQueryLoad) &&…
0
votes
2 answers

AttributeError: 'WebDriver' object has no attribute 'execute_cdp_cmd'

I am trying to set geolocation based on this documentation: https://www.selenium.dev/documentation/en/support_packages/chrome_devtools/ I am using selenium==4.0.0b2 I am running remote webdriver instead of local, and I am getting the following…
The Dan
  • 1,408
  • 6
  • 16
  • 41
1 2 3
12
13