86 questions
1 vote
1 answer
537 views
How to handle login with otp in pytest framework with selenium for parallel test execution.?
Suppose, I have login to application function in setup module with the scope session. Test file name: test_login_app.py @pytest.fixture(scope="session") def setup_module(request): ...
0 votes
2 answers
226 views
How to get last xpath executed or used by selenium webdriver?
I have one method called click button where I'll be having multiple try catches containing X-path, so how will get to know which X-path is executed recently by the driver? public void actions(String ...
2 votes
4 answers
18k views
Selenium TypeError: __init__() got an unexpected keyword argument 'service'
I'm refactoring my app from procedural code to OOP. I am trying to do this Driver class. UPDATE: this works in Windows but not in Mac. # IMPORTS from sys import platform import os from os import ...
0 votes
2 answers
2k views
Check with Selenium if browser is open
I'm using C# / Selenium 3 and the Microsoft Chromium Edge Webdriver to scrape a web page and then deliver data to another application. I need to check if the user has closed the web browser. Is there ...
0 votes
0 answers
100 views
Selenium misses random elements on "Follow" button from a Instagram user followers list
Trying to select the "Follow" buttons from a Instagram user followers list like this one: Instagram followers list I'm using this function to get the buttons. That weird string is the class ...
2 votes
3 answers
1k views
Locate an element using selenium xpath
I am trying to locate an element that has the following line in the chrome inspect code, <href="app/arp/home/profile">. My line is: driver.find_element(By.xpath("//a[@href='/app/...
-4 votes
1 answer
413 views
What is a hub in the Selenium grid?
As per the documentation: Hub is the central point in the Selenium Grid that routes the JSON test commands to the nodes. It receives test requests from the client and routes them to the required ...
2 votes
1 answer
1k views
Would you like to replace the existing file was asked while extracting selenium-server-standalone jar file
After having downloaded the selenium-server-standalone-3.141.59 jar file from https://www.selenium.dev/downloads/, I tried to extract the files. During the extraction, a pop-up shows up saying: "The ...
0 votes
1 answer
447 views
Robot Framework: How to click checkbox by the value attribute
Trying to check a specific check box in a dynamic grid. The only uniqueness for the targeted checkbox is it's value. The surrounding div is created by the grid object and is not really related to the ...
0 votes
0 answers
3k views
An error has occurred. See error log for more details. org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IProject
Getting an error while viewing the properties of the folders. Earlier it was working fine I don't know what the problem is. I removed the dependencies and added again but still getting the same error....
0 votes
1 answer
88 views
Mouse hovering action is not happening in selenium and python3
I am automating the Expedia site using selenium(3.12.0) and Pyhton(3.7). I am not able to acheive the mouse hovering action. Error message is:selenium.common.exceptions....
23 votes
6 answers
41k views
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 ...
1 vote
2 answers
2k views
Webdriver won't click "Accept cookies" button, throws "ElementNotInteractable" Exception
First of all, I'm using Cucumber 4.2 and Selenium 3 on Firefox 64. I'm trying to get past the "Accept cookies" button with Selenium, but nothing seems to work. I've tried following DebanjanB's ...
0 votes
1 answer
1k views
Geckodriver Error: Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by
Selenium standalone server lib is added, Gecko driver (latest version). All set but error still appears. I'm using: Java 8 Update 191 Windows 10, 64 bit Mozilla 48.0.2 Selenium 3.141.59 Code: ...
0 votes
2 answers
165 views
JQuery script for iframe is not working with Selenium3
I have create a JQuery script that works in the browser console, but it is not working in the selenium3 automation. The exception I'm receiving is unknown error: $ is not defined. I read that the ...