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
1answer
31 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; ...
2
votes
7answers
12k views

driver.manage(…).timeouts is not a function

I'm using Node.js selenium-webdriver and I have this annoying issue. The issue is that the wait function throws an exception in console. var webdriver = require('selenium-webdriver'), By = webdriver....
0
votes
2answers
107 views

How to get XPath for the text after the <b> tags

I Need to get XPath for the following, to get the text after the <b> tags <li class="SpacedOut"> <b>Name 6:</b> "ABC" <b>Name 1:</b> "BCD" <b>Name ...
2
votes
2answers
70 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
vote
2answers
41 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 ...
0
votes
4answers
70 views

What is the best way to learn Selenium Webdriver or any Automation tool in general? [closed]

I have purchased a Selenium automation course and practice sometimes as per the code shown in the lecture. But, i am going very slow and circling in basic topics like dropdowns, select tag, waits etc. ...
0
votes
1answer
48 views

login for https url having https different url for browser popup in selenium python

I have url https://dc1-common.naops.exu.xxxx.se/cgi-bin/index.pl and after entering I got another url https://dc1-common.naops.exu.xxxx.se with Sign In Browser pop up which requires for Authentication ...
-1
votes
1answer
57 views

When we are running script first time script running properly but next time system throwing error file got corrupted [closed]

First time script running successful but next time getting error file got corrupted.
0
votes
1answer
86 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 java....
-1
votes
1answer
21 views

Getting key and respective value in ng-repeat using Selenium and Python

Being new to Selenium, I have been trying to figure how to extract the value corresponding to the key under the ng-repeat, in my case, the key is 'status'. The partial page is as follow: <div ng-...
41
votes
8answers
42k views

How to avoid triggering google captcha while browsing in a selenium-driven browser?

Preface: my goal is not to solve captcha using automation tools, but to attempt to understand why a browser that is being launched by selenium is being identified as a bot in the first place, and how ...
2
votes
4answers
90 views

locating element by id or css, which is faster?

If there is an id available for an object in a page, find element by ID or CSS - which is faster? element(by.id("btnButtonID")) OR element(by.css("#btnButtonID") Since we can identify any objects ...
1
vote
3answers
75 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
22 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
28 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 ...
0
votes
2answers
44 views

How to Handle Dynamic Changing IDs inside a span

How to Handle Dynamic Changing IDs inside a span In XPath? for example : <span id="listv2_f40a0e90dbcc089cae10d48a489619ee_total_rows" style="margin-left: 1px;">2000</span> In this ...
1
vote
2answers
619 views

How to drag an element and drop it in another frame?

Hope you doing well, I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
0
votes
2answers
31 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
37 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 ...
0
votes
2answers
52 views

Capture arguments of onclick() javascript call using Selenium Java

I am writing a selenium script in Java to capture the arguments passed in JavaScript onclick() call/method. Attached is the image in which method/function name is highlighted. Now, In this method ...
7
votes
1answer
112 views

How much help to provide someone who will not learn on their own

I have learned a lot about Selenium by reading Selenium Guidebook, and then spending over two years writing tests, researching issues, and finding ways of doing complex things. I have tests that are ...
1
vote
1answer
154 views

I need my selenium webdriver to wait a bit more, but don't want to add an explicit wait

I'm trying to send keys to an input box that is displayed within a dialog. The problem is that sometimes I get only the last few letters of my text, because the send_keys is sending them too fast. I'...
0
votes
1answer
77 views

Can Selenium automate iOS Safari webpage tests on a real iPhone?

I want to automate a website on a real iPhone with Selenium. Is that possible or do I need Appium? Ideally I will launch my tests from my Windows machine via RemoteWebDriver edit: it looks like it ...
-1
votes
1answer
25 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
0answers
78 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 ...
0
votes
1answer
25 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
vote
4answers
4k views

What is the difference between selenium vs appium webdriver?

When exploring automation for Android with running appium server, I noticed using selenium webdriver my code works fine. In a previous example, I saw appium driver for ios automation. So what is the ...
-1
votes
2answers
27 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 ...
2
votes
3answers
3k views

Selecting element value from drop down list with selenium using POM

I'm trying to make simple test to register in website - https://www.midomi.com/. I'm using c# and selenium but have stuck in selecting values from dropdown list using Page object model. My project ...
0
votes
0answers
19 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 ...
4
votes
2answers
957 views

Using Python Selenium Not able to perform click operation

I am automating for the following page on CHROME Browser https://study.yupl.us/studies/5d5a64aa8b5bb92fb776753b?auth=false Here I'm able to identify the unique element from the console for the XPATH ...
1
vote
1answer
37 views

Selenium WebDriver gives the same window handle across multiple Firefox browser sessions

We use different profiles to test different features of our system. If we open new multiple FF sessions (each with it's own profile), Selenium Webdriver only uses 1 window handle identifier. (pseudo ...
0
votes
2answers
56 views

How can we run only selected testcases from extent.html report in selenium webdriver?

I'am running testng suite and then extent.html report is being generated. Now I want to customize my report like; i should be able to select only failed testcases in my report and then should be able ...
2
votes
2answers
675 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 ...
1
vote
2answers
101 views

Cannot initiate TestNG test

I'm learning to use selenium WebDriver with TestNG plugging for Eclipse and I ran into this issue where I can't execute the test case (it is unfinished but it has no compile errors nor warnings). ...
0
votes
1answer
66 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 ...
0
votes
1answer
687 views

Selenium does not click on radio button on pop up

On form, there is one binocular. On click on binocular, pop up opens. There are radio buttons on pop up. I need to click on radio buttons, it's failing. I have tried below code but it shows error ...
2
votes
2answers
89 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 ...
0
votes
1answer
65 views

Able to find xpath, but trying to click button throws exception

I tried to click on an element using the code below but it is throwing Exception: No Such Element Selections WebElement clear=driver.findElement(By.xpath(PageUtility.OPEN_LOCATION_POPUP_XPATH)); ...
0
votes
3answers
7k views

How to get XPath from different div?

Below mentioned two urls: http://www.espn.com/nhl/boxscore/_/gameId/400896617 http://www.espn.com/nhl/boxscore/_/gameId/400885545 How can I get XPath after player summary content. 1st url is XPath ...
3
votes
2answers
289 views

How to select second value in drop using Katalon Chrome Extention?

I'm trying to make Katalon chrome extension to click the dd/mm/yyyy language. But the problem is when I record the click on dd/mm/yyyy Katalon records xpath=(.//*[normalize-space(text()) and ...
1
vote
1answer
978 views

calling TIS/TSM in non-main thread environment

macOS 10.14.3 Chrome 72.0.3626.96 Chromedriver 2.46 While trying to execute following code I receive an error: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa....
3
votes
1answer
1k views

How do I disable 'show all' download bar of chrome in selenium

I need to disable 'show all' download bar of chrome in selenium. Because the download bar is showing, UI elements in the lower portion of my page that need to be clicked are not visible. I'm looking ...
0
votes
1answer
16 views

Selenium Mac Salesforce

I am trying to automate to log in into salesforce account and after it logs in i want it to click on contact button but for some reason it wont, i even wrote a different function just for it to click ...
0
votes
1answer
84 views

Getting this error when i run my java appium script

When I save and run the code the compiler is showing error with respect to DesiredCapabilities I thought I might have made an error while importing the jar so I uninstalled everything and installed it ...
19
votes
7answers
110k views

Running WebDriver without opening actual browser window

I've heard rumors that Selenium WebDriver can run without opening a real browser window, meaning it runs in the background. I am using the C# Client Drivers, FirefoxDriver within the automated tests, ...
1
vote
5answers
29k views

Cannot get a STRING value from a NUMERIC cell. How can I resolve this issue in selenium webdriver using POI?

I am trying to read data from an excel sheet and write on my application.But shows an error while trying to pass a numeric value using string. Please suggest me how can I resolve the issue. Please see ...
3
votes
2answers
4k views

How do you press two keys at the same time with Python Selenium?

Trying to do accessibility automation and want to use shift+tab to go back an element. But can't seem to get anything to work. Tried what the doc imply should work based off their "Example, pressing ...
0
votes
2answers
77 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 ...
-1
votes
3answers
4k views

How do I get particular textNode value of a DOM with Selenium

Hello I am trying to find Load # detail from this site. Also You can refer screenshot too. I have tried with xpath: //div[@class='equipment_item']//text()[preceding-sibling::strong[text()='Load #:']][...