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
1 answer

AttributeError: 'Service' object has no attribute 'process' error using Opera browser with Selenium and Python3

I'm using the latest version of Opera - version 95.0.4635.46 (x86_64), which is based on Chromium version:109.0.5414.120 and chrome driver version 109.0.5414.74. When I run the following code on macOS: import time from selenium import…
0
votes
0 answers

java.lang.NoSuchMethodError org.openqa.selenium.support.PageFactory.initElements - Selenium 4

There is a requirement where I have to add extension in browser before running scripts. For that I decided to use Browser Options (EdgeOptions).Browser option is introduced in selenium 4. All required dependencies I have already imported but now I…
0
votes
0 answers

selenium-4.1.1 NoSuchMethodError

In my project we were using selenium 3.14. For upgradation we upgraded to 4.1.1 for using selenium Capabilities. But there is dependency mismatch issues we are…
0
votes
0 answers

My selenium script is scraping the variables in the first link of google maps correctly , but when it loads the second link it shows some error

The goal of this script is to access business names from an Excel file and then search it on google maps and scrape the required data. The issue is that the script is running correctly and scraping the data of the first business name on google maps.…
0
votes
1 answer

Measuring step-time with Selenium 4 and PowerShell

I am writing a PowerShell script to log into a website, load a database entry, add a note, then log off. After the website finishes loading, I want to know how long it takes me to open the "notes" part, enter the note, and save it. This…
0
votes
1 answer

Using Relative Locators results in org.openqa.selenium.NoSuchElementException: Cannot locate an element using [unknown locator] with Selenium Java

I'm using selenium 4 and trying to locate some elements (Username and password credentials) "Username : Admin Password : admin123" using Relative Locators selenium 4 new feature but the Code throws org.openqa.selenium.NoSuchElementException: Cannot…
0
votes
0 answers

reference to type 'icommandexecutor' claims it is defined in 'webdriver' when using IOSDriver

Updating my Selenium project to Selenium 4 results with the following error: reference to type 'icommandexecutor' claims it is defined in 'webdriver'. The error is actually pointing to the following line: m_driver = new IOSDriver(new…
JumpIntoTheWater
  • 1,306
  • 2
  • 19
  • 46
0
votes
0 answers

TouchAction deprecated in Selenium 4

Here is my code to bring the Keyboard on the real ipad devices. Since Touch actions is been deprecated in Selenium 4. Can anyone help with the new solution? public void tapOnElementToBringKeyboard(By locator) { TeasyElement element =…
Vineesh
  • 3
  • 3
0
votes
0 answers

driver.getTitle() and driver.getCurrentURL() is not workign and throwing error "org.openqa.selenium.UnsupportedCommandException"

Currently working on Mobile Responsive automation testing using Appium 8.0.0 and selenium 4.1.2 version and I could able to invoke the device and load the application url also but when tried to get the title of the web application which is launched…
Gopi
  • 21
  • 1
0
votes
0 answers

How to reject-unsupported-caps in Selenium Grid hub and node

I am testing different configurations for selenium grid 4 and in the official documentation is said that reject-unsupported-caps = true will "Allow the Distributor to reject a request immediately if the Grid does not support the requested…
0
votes
1 answer

Selenium version 4.6.0 is throwing HTTP504 error

I have installed selenium 4.6.0 in my local machine which works fine, within company VPN. Then when I deployed it in our orgs kubernetes cluster (isolateComponents: true) I am getting HTTP 504 for my test cases. No issues in the chrome node…
Susanta Adhikary
  • 257
  • 2
  • 6
  • 20
0
votes
0 answers

Selenium 4.6.0 - SessionNotCreatedException when trying to run a test in standalone mode

I'm using Selenium 4.6.0 and trying to create a simple test to run and below is the code I'm using private static WebDriver driver; dc.setBrowserName("chrome"); driver=new RemoteWebDriver(new URL(remoteURL), dc); Chrome driver version:…
Rameshwar
  • 541
  • 6
  • 22
0
votes
1 answer

How to use variable instead of xpath value in Selenium ...find_element(By.XPATH, "xpath")

Is there a way to use variable instead of string value for the xpath? I am using: driver.find_element(By.XPATH, "xpath-value-string") But I need to replace the string (the xpath value) and use variable instead like this: my_xpath =…
0
votes
1 answer

How to use a socks5 proxy with authentication via selenium 4, Python and Firefox (options)

I searched a lot, this came up many times over the past decade, but nothing addressing the problem or with the latest version of Selenium + Python (that I can find) If I set up a socks5 proxy server (using Ubuntu 22.04 and Dante), I can forward my…
Reily Bourne
  • 5,117
  • 9
  • 30
  • 41
0
votes
0 answers

how can i using python senlenium to locate pseudo element

i have below html structure, how can i use python senlenium to locate pseudo element 'before',
jxccc
  • 1