All Questions
Tagged with selenium or selenium-webdriver
157,746 questions
0 votes
4 answers
9k views
When i use Assert.assertFalse(), to check the absence of an element, my scripts are getting failed
Assert.assertFalse(driver.findElement(By.xpath("element's xpath")).isDisplayed(), "Bug!! The element is appeared"); When i run my code with the above script, my scripts are failing with ...
1 vote
1 answer
71 views
Take screenshot of whole html-page using python with selenium in non-headless mode?
I am trying to take a full screenshot of the whole html-page using the following code - I would like to do this with selenium (not pyppeteer) I am searching for a python solution (not Java) I am ...
1 vote
1 answer
316 views
"InvalidArgumentError missing field 'capabilities'" after mozilla geckodriver updated to 0.35v
Last week Mozilla's geckodriver released the new 0.35.0 version, and since then the tests I'm running using Jenkins aren't running. In the console output I've noticed the error that I put on the title:...
0 votes
0 answers
22 views
Selenium grid, firefox specific functionality
I have configured a selenium grid instance in kubernets. Which has a deployment that looks somewhat like this: apiVersion: apps/v1 kind: Deployment metadata: name: selenium-standalone-worker ...
1 vote
2 answers
63 views
How do I code a CSS Selector to find a specific button, click on it, and wait until the webpage has completed the clicked task?
I have a working web scraper written in Python, Selenium and Chromedriver (all up-to-date version wise) and various other software packages. The target webpage has a field for the phone number, but ...
0 votes
1 answer
10k views
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure
I am new to Selenium. Trying following code and it works for Firefox. When I try for Safari, getting error. package MyTestPkg; import org.openqa.selenium.WebDriver; import org.openqa.selenium....
4 votes
1 answer
9k views
Selenium execution stops when screen is locked
I can execute my Selenium scripts without any issues if the screen is not locked. As per our organization policy, our system will be locked automatically after 3 minutes of inactivity (but system will ...
1 vote
1 answer
16k views
Reusing common step definitions between two feature files in cucumber (java)
I want to know(if possible) -how to reuse step definitions related to few or all steps of a scenario from one feature file to another another? For Example- in my Feature file-1 :I have below scenario/...
2 votes
2 answers
71 views
Can't find HBO Max sign-in, "unable to locate element" error
I'm trying to make a automation that logs into https://auth.hbomax.com/login, however I keep getting the below error as the code can't locate the sign-in element. selenium.common.exceptions....
4 votes
3 answers
19k views
Python/selenium how to use proxy with undetected-chromedriver
whenever I try to use a proxy with undetedted-chromedriver, it just doesn't work and diplays my ip. When I use the normal webdriver, it works perfectly. from selenium import webdriver from time import ...
3 votes
2 answers
13k views
How to run my automation(test) on Jenkins without using the Headless
I'm running my automation with WiniumDriver. When I run on local machine (without headless mode) it works well, but when I run from Jenkins it doesn't work, because I'm using headless mode. How can I ...
4 votes
3 answers
10k views
ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- selenium-webdriver (LoadError)
I am trying to run this below code, then I got code error: ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- selenium-webdriver (LoadError) I am not able to ...
0 votes
3 answers
11k views
FAILED CONFIGURATION: @BeforeTest beforeTest . MAVEN; TestNG, Selenium
Hi I'm trying to run Selenium script with Maven, TestNG in Eclipse. First I right click on my project and select TestNG | Convert to TestNG(testing.xml is created). Then I go to the Run ...
271 votes
4 answers
103k views
What would be an alternate to [TearDown] and [SetUp] in MSTest?
When I use MSTest Framework, and copy the code that Selenium IDE generated for me, MSTest doesn't recognize [TearDown] and [SetUp]. What is the alternative to this?
1 vote
3 answers
94 views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)? [closed]
How can I handle multiple <img> elements in Selenium when all of them have the same id attribute? I need a way to automatically detect and interact with these images, even though they share the ...