The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Selenium TestNG - java.lang.NullPointerException in automation testing

I am trying to test the login function to my android app. But it displays an exception error "java.lang.NullPointerException" . Code as follows:` package tests; import java.io.IOException; import ...
-1
votes
2answers
22 views

What is the use of Maven in Selenium WebDriver Automation Project?

Do we use Maven only to create dependencies in pom.xml file? Isn't there any other use of Maven in selenium project?
0
votes
2answers
21 views

Automated tests for shop basket - how to handle not known number of arguments in test with Junit

I'm working on test automation for shop basket module and I'm struggling with providing test data using Junit CsvSource in the 'nice way'. So far my test looks like this @ParameterizedTest(name = "...
1
vote
1answer
19 views

Trying to highlight elements on a page one by one using Selenium

I'm trying to highlight all the elements of a page, using Selenium to inject some JavaScript and CSS. However when I run my test i'm only getting back errors complaining that it can't find the ...
-1
votes
1answer
16 views

selecting date using selenium and python

I am automating the MakeMyTrip application for selecting a respective departure date. suppose I want to select 20 January 2020 how do I select driver.find_element_by_id("departure").click() ...
0
votes
1answer
26 views

Jmeter vs Selenium websocket testing differences

I am researching the differences between Selenium and JMeter and I stumbled across the following statement about Selenium: Even though WebSocket might be encapsulated into a web session and ...
-2
votes
1answer
31 views

How to find any elements using appium with selenium in eclips? [on hold]

can someone tell me i have done my first program to run app with appium automation testing, now i want to move further and find elements and want to click on that to test it, please let me know what ...
0
votes
1answer
18 views

how to fetch the list of values from radio button?

I am working on selenium and python. I am unable to select the radio button. I want to add the values in a list. and iterate and click on the specific radio button. def test_search_in_python_org(...
-1
votes
2answers
23 views

How to select from address using selenium and python?

I am automating make my trip app for practicing. I am working on selenium and python I am unable to enter from the address and select the autocomplete list. here is the code import unittest from ...
0
votes
0answers
16 views

Selecting from Dduble drop-down menu with slenium python

I am new to python and I am trying to select from a "cascading" drop-down menu. first, you select the state in the website, and then it gives you a list of municipalities to choose from. Each state ...
2
votes
2answers
623 views

How to verify data is saved or not using selenium?

I am using selenium and java for automation. I am adding new data. after a click on save, data will appear on the left side on the top list and I want to verify. I want to get the first text "new aam ...
0
votes
1answer
27 views

Selenium starts firefox but only stays on a blank page

I've been looking at the distinction between webDriver.naviagate.to and webDriver.get and they seem the same. Certainly a web page launches..but then a big nothing burger. Not sure where to start ...
2
votes
1answer
32 views

Is paid Apple Developer Account needed to run Selenium Appium Automation tests on real apple devices like iPhone or iPads?

So I am working on a project which comprises of the software web application, built on Python 3.7. Currently, it supports pc and mac platforms only with various browsers, and we have automated it ...
-1
votes
1answer
26 views

Python Selenium - How to give 100 comma separated list values to selenium send keys?

sheet1 = client.open_by_url("https://docs.googlesheet")-- using google sheet here sh = sheet1.worksheet("Sheet1") dera = gd.get_as_dataframe(sh1,evaluate_formulas = True,skiprows = 0,has_header = ...
0
votes
0answers
55 views

Problem with parallel testing (POM, python, selenium, pytest)

I have a dir named PageObjects, there is a file Login.py. It stocks all the locators of elements plus functions that I call in test cases. It looks like this: class Login: # Locators of all ...
2
votes
2answers
73 views

Who are some of the Test Automation experts that are well-known and respected in Software Industry? [closed]

I am a complete beginner in Test Automation and was looking for some world experts on this subject. Could you list or refer to material of some of the best known experts in Automation industry who ...
-2
votes
1answer
24 views

how to execute next testcase when one testcase got failed [closed]

Basically am getting the data from excel and in my excel i have a column named as execution and there is around 10 data's in my excel and if i made "yes" on respective data that data will execute. ...
0
votes
0answers
41 views

How to print the try-catch results in the console by Selenuim POM practice?

Here mentioned code successfully passed by the test run.But it was not showed the login button click and the logged user name as well.Not print the messages which mentioned in the assertEquals as well....
0
votes
2answers
59 views

What are the things that one must consider while learning Selenium Webdriver Automation framework?

I am a newbie in Automated scripting using Selenium WebDriver with Java. Also, i have the most basic knowledge of core Java. With tons of resources on the web for learning WebDriver, i am a bit ...
0
votes
2answers
45 views

How can I verify that saved data is displayed corrrectly using Selenium + C#?

<p class="details-info-block__text"><span class="details-info-block__label">Business Address 1:</span> 1010 Priority Way West Dr</p> I want to verify the address value (e.g. "...
0
votes
1answer
35 views

How to resolve the “java.lang.nullpointerexception null value in entry url=null ” in Selenium(POM)

1.TestCommands.java public class TestCommands { public void click(By locator,WebDriver driver){ try { WebElement element = driver.findElement(locator); element.click(); ...
-1
votes
1answer
36 views

How to convert string returning from get text() to tuple? [closed]

My tests are comparing two values to make sure value getting from locator should not be less or equal to expected value. Expected value returning from element.getText method is (0.00, 0.00) and ...
0
votes
3answers
44 views

how to validate whole contents of the web table in selenium

How do i validate all column values based on technologies. e.g For Technology A - values should be 0 0 1 Technology B - Values should be 1 0 100 and so on. My code looks something like this str1 =...
0
votes
1answer
30 views

New error message 'A Java exception has occured' but code has not changed

When I try to execute selenium code in Eclipse, I get the error message 'A Java exception has occurred'. Last week the same code ran without issues. I have done with configuration part, when we try ...
1
vote
2answers
38 views

How to resolve 'Cannot convert from void to WebElement' error in Selenium

I am getting below error: Error: Type mismatch: cannot convert from void to WebElement. CODE: WebElement uploadElement = (driver.findElement(By.xpath("//input[@id='HorizontalLogoPath']"))).click(...
3
votes
2answers
70 views

How to add assertion for blank value?

Scenario: On clicking reset button value should disappear and the field that holds the value should reset to blank. Approach: My approach is to get text or innerHtml from id =mapPropertyHighlighted ...
1
vote
1answer
30 views

IE 11 auto accepts the alert pop up

So I am on an edit page and when I click the cancel button to stay on the edit page the IE driver automatically accepts the leave page in alert pop up. I even added the IE capabilities saying: ...
0
votes
1answer
42 views

Selenium for Internet explorer on Jenkins

Recently, my tests started failing. I'm testing on IE11(company policy) on a jenkins windows slave. My tests all hang on the "This is the initial start page" if I'm not connected to the server. If I ...
0
votes
0answers
41 views

Java Null pointer exception on Webdriver wait statement

I get a null pointer error on WebDriver Wait statement using TestNG. I use a BaseClass my @test class. This was working fine till last week but now is throwing a null pointer exception. If I remove ...
0
votes
0answers
24 views

JNLP file can harm ur computer warning of chrome using Selenium Java. Tried 3 options but none working

My goal is to download .jnlp file which is considered as a harmful file by chrome. So, i have thought 2-3 solutions for this. I am using Chrome 76 version and i dont want to downgrade the chrome ...
0
votes
2answers
73 views

Element located when put in a single test case but not located when put in separate test case

I am in a weird situation where I found that my element is located when I wrote in a single test case. But as soon as I put that element in a separate test case, Unable to locate element Exception is ...
3
votes
1answer
91 views

Locate Elements through Shadow DOM in Chrome Selenium?

I currently have an automation tool built using Python. Currently, the tool serves the custom application my company has built on Salesforce. Salesforce released a Winter 2020 version, and implemented ...
0
votes
0answers
18 views

BrowserMob Proxy not working with latest Chrome version (v.76)

I've recently upgraded my Chrome version from v70 to the latest, v76. As a result, I've noticed that my Selenium tests (which use BrowserMob Proxy to inject headers) have stopped working. The browser ...
0
votes
1answer
31 views

Selenium test stopped working for IE11

I have several tests running, using the InternetExplorer Webdriver and Java to do the logic. All of the sudden, there is 1 test that starts failing. While investigating, I find that the webdriver can'...
0
votes
1answer
23 views

How to select a value from dropdown developed using div tag using Selenium and Python?

Like in selenium java we are using ACTION class method or SELECT method to select value from drop down. Is there any method in Python?
1
vote
1answer
58 views

Problem with dropdown (Selenium + Python)

URL = https://www.sephora.com/search?keyword=shaving At the bottom of the page, I'm trying to change from "View 60" to "View All". The problem is that test case passed successfully, but the browser ...
2
votes
2answers
51 views

How should data and application state be handled in UI automation

I have two big concerns about UI automation. If I am creating a data record as part of my test and verifying the creation, should I also delete the data in the same test? If yes what if the creation ...
2
votes
1answer
64 views

What method should i use to display the country selected from dropdown on console in Selenium Webdriver?

http://demo.guru99.com/test/newtours/register.php For the above site, I am writing a Selenium code to select a country from the drop-down and want to display selected country on the console in ...
0
votes
1answer
26 views

Selenium chaining IWebElement actions in C# [duplicate]

[FindsBy(How = How.XPath, Using = "//input[@id='Username']")] private IWebElement txtUsername; public void EditTxtUsername(string text) { txtUsername.Clear(); txtUsername.SendKeys(text); } ...
-1
votes
1answer
48 views

Cannot upload files when running tests in docker Selenium_Hub, Selenium-Node-Chrome-Debug and a container w/ Mocha + Selenium-Webdriver (JS)

I am trying to run javascript mocha selenium-webdriver tests on my company's application using docker containers. I seem to have everything working except that I am unable to upload files. Prior to ...
-1
votes
1answer
27 views

Can any one suggest how to test leaflet maps using Selenium?

I want to test fleet management software using selenium core java. But i have no idea how to test maps and live tracking scenarios using selenium. can anyone give us best solution?
1
vote
2answers
80 views

Stale element reference: element is not attached to the page of the document

I would really appreciate if someone could help figure out what the hell is going on with one of my tests. I'm getting Stale element reference: element is not attached to the page of the ...
0
votes
1answer
17 views

when am executing the below code am getting <terminated> WriteExcelFile[java application] error

package seleniumpackage; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.hssf.usermodel.HSSFWorkbook; ...
0
votes
0answers
33 views

How do I deal with a Gmail CAPTCHA during automation? [duplicate]

My test suite involves me logging into a website with 4 specified social logins: - MS Live - Facebook - LinkedIn - Google Now the problem is that many of these social logins sometimes give me a ...
-1
votes
2answers
29 views

How can I create a function of login test case in selenium web driver- python & how I can call it in other test case?

How I can create a function of the login test case in selenium web driver- python and how I can call it in other test cases? basically I want to call my login test case in other test cases.
0
votes
1answer
37 views

How to read the excel (Later enter test data in application based on particular test script name)

I need your help, I want to read test data based on the Test script. And after reading data it should enter in the application. I am using selenium Java + Apache POI Below is the code please help. ...
0
votes
1answer
79 views

Permissions error trying to run Appium test on Android

I am not able to run my automation testing with Appium server using Eclipse with Selenium. The error I get is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to ...
1
vote
3answers
62 views

How to select option in a dropdown when the html-tag has a random id

I have a problem how to select a desired option (e.g. From, To...etc.) from list if 'datalist id' and 'select name' are randomly generated. This means that the ID and name has another value after ...
0
votes
1answer
16 views

How to get text from header having separator

How to fetch text for <h1 _ngcontent-gtj-c13=""> Site-2 <span _ngcontent-gtj-c13="" class="seprator">|</span> Building-1 <!----> </h1> I have used attribute ...
1
vote
1answer
19 views

Run Selenium test case in time interval from a console application c#

how to create a console app - a batch file which will hit my Automation testing application and runs selected test cases. I have test case with code coverage and it runs from my visual studio . and ...