Questions tagged [selenium-webdriver]

Selenium-WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.

0
votes
0answers
2 views

how to put if else condition on tr tags in python selenium for different tabs in same page

I have three tabs in page i want click and check on each tab if data is their i need print else i need to another tab click on do same thing using selenium python. but now it is going to both if ...
1
vote
0answers
13 views

Using Java, how can I implement an UI cucumber scenario that gives entry data to the Webdriver while maintaing ability to run locally and remotely?

I have a .properties file that gives input data for instantiating the WebDriver inside the ServiceHooks class. How can I change this logic to use a cucumber .feature file to drive the parameters that ...
1
vote
2answers
19 views

Scrape Zillow Lender Profiles

i am trying to scrape desired information from zillow lender profiles on this website: https://www.zillow.com/lender-directory/?sort=Relevance&location=Alabama%20Shores%20Muscle%20Shoals%20AL&...
0
votes
0answers
7 views

“WebDriverException: Message: invalid argument: can't kill an exited process” CentOS 7 on VPS, geckodriver v0.24.0 and Firefox60, selenium Python

I'm using selenium to input some information into a webpage and click a button, but on the initialisation of the Firefox webdriver, it produces the error in the title, how do I get past this? I have ...
0
votes
0answers
24 views

How can I focus new windows while testing website

I am using selenium for testing intranet-sites. The website I am testing runs only in internet explorer 11. I used this Java code to manage the windows: public class DMSBrowserTest { public ...
-1
votes
2answers
27 views

Selenium simple for loop

I'm trying to use either a for or while loop to loop through the website until the tree is expanded all the way out. All of the closed links names will print; however, my if statement seems to always ...
2
votes
2answers
26 views

Selenium unable to connect to ChromeDriver 75 on Mac

We are upgrading a previously-working Selenium/Java/Chrome test configuration, to newer versions: ChromeDriver 2.35 -> 75.0.3770.90 Selenium Java 3.14 -> 3.141.59 macOS ...
0
votes
2answers
18 views

Selenium find dynamic element with dynamic path

I am writing on a selenium program to scrape a site that is behind a login. However everything except the Placeholder text is dynamic including the css selectors, the xpath etc. Is there a way to ...
0
votes
0answers
15 views

Nightwatch firefox problem accepting SSL certificate [duplicate]

I got stuck in a problem, I have set Firefox as my default browser in my nightwatch.json file but for some reason, I keep on getting the following error: Error while running .navigateTo() protocol ...
0
votes
0answers
20 views

How to get text in selenium when value is empty in bootstrap [on hold]

In Bootstrap,while loading the text-field that value in html is empty, <input class="form-control datRang rmveEmpty" id="chargeDate" required="" type="text" value="" style="pointer-events: auto;"&...
0
votes
0answers
10 views

how to get text of snack-bar alert in selenium-python?

I am automating angular-material application and we are using snack-bar for alerts. I am unable to get text from snack-bar because switch_to.alert method is not working. Here and giving error driver....
1
vote
0answers
11 views

How can we interact with active browser using selenium? [duplicate]

I am looking for a way to interact with my active window using selenium, without making an extension. Kindly suggest me a way.
1
vote
2answers
33 views

BrowserStack Error- [browserstack.local] is set to true but local testing through BrowserStack is not connected

While trying to execute a Selenium test on BrowserStack with the capability 'browserstack.local' as 'true' I am getting the following exception- org.openqa.selenium.WebDriverException: [browserstack....
0
votes
5answers
43 views

How to store values from a list to arraylist in selenium

I am trying to store the values from a list to a global array for later use/verify in other pages. My element looks like below: Tried array list which gives only the 1st line, but I have multiple ...
0
votes
1answer
24 views

“TestNG No tests found. Nothing was run” while executing automated tests using Selenium through TestNG

I want to know what exact software should I install before I run my automation project. Selenium web driver, selenium java, testNG, junit was installed but there are some problems with that also. 1. ...
2
votes
3answers
31 views

Getting java.lang.NullPointerException in POM uisng page Factory

I've posted below some sample code which I've done so far and I'm getting an Exception java.lang.NullPointerException. Base Class: public class TestBase { public static WebDriver driver= null; ...
0
votes
0answers
20 views

Webdriver - 'NoSuchElementException' for a web element that has already been interacted with?

I am facing an issue during some of my Selenium automation scripts (appears to be happening randomly) where an element that has already been interacted with is throwing an exception later in the test ...
0
votes
1answer
13 views

How to read toast message in appium if toast message is dynamically changing in such cases how to extract using tess4j

Currently in our app for testing purpose dev team is displaying OTP as a toast message there are lot of places in such cases how to automate using appium anyone help me on this
-2
votes
0answers
16 views

Errors when running test configuration [duplicate]

I am trying to generate Extent report. It works if I run testcase indiviually, but shows error if run through testng.xml BasePage Error Error LoginPage LoginPageTest testng.xml
0
votes
1answer
32 views

Posting Status in Facebook using Selenium and Java

How to Post Status in Facebook using Selenium and Java?I have tried below code which doesn't work.Able to login but getting error no such element while posting status.After login i am getting ...
0
votes
1answer
18 views

Click on load more button using selenium not working properly in python3.7

As I am scraping, the page is dynamic with the 'load more' button. I used selenium for that. The first problem is that it is only working only one time. means clicking load more button the only first ...
0
votes
2answers
21 views

Selenium-Python: Unable to clear chrome browser cache [duplicate]

I'm trying to clear chrome browser cache by click on the 'Clear data' button below after navigating to chrome://settings/clearBrowserData. But I'm unable to click on the 'Clear data' button. Please ...
-3
votes
0answers
13 views

Run seleniums script on linux server Ubuntu

I wan to run Selenium script on Linux server ,I installed chrome driver, Xvfb on linux , do I need to install google chrome UI also ? Tried to install google chrome but facing error while installing ...
0
votes
0answers
37 views

Scraping a challenging seemingly HTML table using Python

While looking for tough websites to read data from, I find a good case study in the following. I have solved it using a brute force and an inelegant solution. However, I am sure their is an elegant ...
-1
votes
1answer
27 views

Exception message is not printed when using WebDriverWait from Selenium through Python

I am able to see exception message for if xpath is in try-except() block as self.driver.find_element_by_xpath().But when I add explicit wait to element,the error message is blank, if the xpath is not ...
0
votes
2answers
23 views

Error 429 with simple query on google with requests python

I am trying to get the first non-ad result on a simple query on Google. res = requests.get('https://www.google.com?q=' + query) Assign any value to query and you will get an error. I have tried to ...
-6
votes
1answer
23 views

'how to give input to a function from console in python'? [on hold]

"I am writing a function which takes two parameter as a combination.But i need to give the parameter in console. so that it can work on a set of resolutions and time combinations each time ...
0
votes
1answer
31 views

selenium.common.exceptions.ElementNotInteractableException

I'm trying to create a script in python that auto-clicks buttons on youtube. I've read over the selenium documentation on their website for python, but as with most documentations, it's written by ...
0
votes
0answers
19 views

Exception thrown when running Docker Compose in Visual Studio

My C# Selenium testing project runs in a Docker container. I can view the container in my localhost just fine, and the project builds successfully, but when I hit Docker Compose in Visual Studio, I'm ...
-1
votes
3answers
32 views

How to expire current session which expires after specific time early?

How can I make the selenium web driver to believe we already past specific time and the current session got expired?
0
votes
0answers
16 views

How to verify PDF doc is loaded before proceeding with selenium test

I am using webdriver JS to verify a page that has PDF embed loads, but I don't want the test to end before the PDF is rendered in the PDF viewer within the webpage. I can not think of a way to test ...
0
votes
1answer
21 views

Getting org.openqa.selenium.remote.UnreachableBrowserException for Chrome

I am getting this error and I have checked the documentation and even the basic program on the documentation page is giving this error. chromedriver : 2.44 chrome version : 74 org.openqa.selenium....
0
votes
2answers
48 views

How to capture the correct xpath or element of a drop-down button that is dynamic in Selenium

I've been trying to select a drop-down menu but I noticed that its XPath and ID changes every time, so it is probably dynamic. How do I capture the correct path for my element on this type of ...
0
votes
0answers
30 views

Need to write the data in the last column of excel sheet with header and value

FileInputStream file = new FileInputStream( new File(System.getProperty("user.dir") + "\\Data\\ReturnsAndReplacementsEcomm.xlsx")); XSSFWorkbook workbook = new ...
0
votes
0answers
15 views

How to create an efficient test data file

I am automating a campaign creation process. It is a very big form, which has image/audio/video/html uploads and many other fields validations. Currently I have stored all the values in an external ...
0
votes
0answers
23 views

ModuleNotFoundError: No module named 'selenium' when selenium is installed [duplicate]

Im trying to setup my python code so that i can run it as a batch file by using windows key r and then typing the program name (just like in automate the boring stuff). im using pycharm as my coding ...
0
votes
0answers
6 views

Performing actions( click, send keys) on element under shadow root [duplicate]

How to fetch data from web table which is under shadow root vaddin grid tag Issue is i'm unable to map td tag with vaddin grid tag
0
votes
0answers
25 views

How to setBinary path of chromium-driver in selenium java? [duplicate]

How to set the path correctly in setBinary() of ChromiumOptions. For example options.setBinary("/path/to/other/chrome/binary"); My chromium-browser is located in /usr/bin/ directory in a linux ...
0
votes
0answers
13 views

need to get data of vaadin grid dynamic table with selenium? [duplicate]

I'm trying to automate a page using selenium ,it is developed using vaadin framework it contains table which is updated dynamically table structure similar to something like this : <table> <...
-1
votes
0answers
18 views

Webdriver is not able to identify an iFrame when multiple iFrames are present on page [duplicate]

I have 2 PayPal buttons and each button is in a specific iFrame provided by PayPal. They don't have unique identifiers, only the xpath has a different code but is not working to locate it using a ...
-3
votes
0answers
27 views

I want to execute 180 test cases in parallel for which I have created a testng.xml file [on hold]

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="Udds_Automation" verbose="1" parallel="methods" thread-count="2" > ...
0
votes
1answer
23 views

Forming a Test Data List using JAVA for selenium functional testing

I am trying to form a test data to verify the text of each using selenium. But having a problem in how we can validate the content using selenium. Can you please suggest how to achieve this and how ...
-3
votes
0answers
17 views

How to connect Toad database and get values from table using java selenium webdriver? [on hold]

I am the new for Toad database.I don't know how to connect Toad database and fetch the values from DB
0
votes
0answers
19 views

Using selenium c#, unable to click on menu once another menu is selected

I am using Protractor .NET with selenium C# for angular application. For one application click is not working for another menu item once any menu item is clicked. I have tried various XPATH (using ...
0
votes
0answers
17 views

how to automate vaadin grid dynamic table with selenium? [duplicate]

I'm trying to automate a page using selenium ,it is developed using vaadin framework it contains table which is updated dynamically table structure similar to something like this : <table> <...
-4
votes
0answers
36 views

When I submit a form , the results are displayed in a new window session instead of next tab

I have : driver = webdriver.IE() I have some url: driver.get(url) I have one form I want to submit : elt = driver.find_element_by_ID('CMD_Exec') driver.find_element_by_xpath('//button').click() ...
0
votes
1answer
20 views

Unable to connect to network drive through Nunit-console runner when running tests

So I have these lines of code right here- // on a network location string fileName = @"S:\Information Technology\QA\Automation\jsons\scheduler_ready\patientInfo.json"; string json = ...
0
votes
0answers
18 views

Unable to open URL in Firefox driver

I am not able to open my URL in Firefox driver. I have added gecko driver but unable to open . I have Selenium - 3.14.0 , poi- 3.13 , gecko - geckodriver-v0.24.0-win64 ,Firefox - 60.5.0 ESR System....
0
votes
2answers
25 views

Python Selenium not able to collect element using xpath

Here is my Python code from selenium import webdriver import time driver = webdriver.Chrome('/usr/local/bin/chromedriver') driver.get("https://www.immoweb.be") elem1 = driver....
0
votes
0answers
12 views

How Do I Reset The Har File Used By Browser-Mob-Proxy Module For Python?

i'm using the browser-mob-proxy module and selenium for python in order to record some things that are sent by a website when you are using it. What I am doing is creating a server using browser-mob-...