Questions tagged [selenium-webdriver]

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

438 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
341 views

When exporting from Selenium IDE to Webdriver, some commands are not getting exported. Its coming as “Unknown Command”

driver.findElement(By.linkText("Add User")).click(); // ERROR: Caught exception [unknown command [readCSV]] // ERROR: Caught exception [unknown command [while]] // ERROR: Caught exception [unknown ...
1
vote
0answers
85 views

Robot framework: how to point to libraries folder other than default?

I've set up a Maven project that uses Selenium (as a dependency) and would like to add Robot. The thing is, according to http://robotframework.org/MavenPlugin/: Third party libraries (e.g. Selenium ...
1
vote
0answers
483 views

Is there a way to enter automate entering credentials in the IWA and SAML popup using only python and selenium

I am trying to create an automation script for a website that supports both IWA and SAML authentication. In case of IWA, whenever I hit the URL using the selenium driver, I get a Authentication ...
1
vote
0answers
172 views

Cucumber/Selenium WebDriver Ruby not popping a browser during remote session (TeamViewer)

This is a bit of a mystery. I'm running a remote desktop session using TeamViewer in an OSx system (which behaves like an ordinary console in every way that I can detect). From the command line, I'...
1
vote
0answers
546 views

Unable to run the Protractor tests in safari browser and build failed

My safari browser unable to locate the elements also and used so many delays: My Configurations are: iMAC Version: 10.11.6 OS X El Capitan Safari Version: 10.0.3 Protractor version: 5.1.1 ...
1
vote
0answers
3k views

How to compare image using AShot in selenium (Java)

I am using this code: package wayPoint; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.concurrent.TimeUnit; ...
1
vote
1answer
582 views

Exception generated after exporting code as runnable jar

D:\RhythmFileDownload>java -jar fileDownload.jar Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b port 36946 Only local connections are allowed. Apr 03, 2017 6:14:23 PM ...
1
vote
0answers
63 views

Selendroid is alwasy looking for default emulator-5560'

Im runing some of my test on cross browser and when i try to do it on Android as on below code ,Some times it gives me an error saying Caused by: io.selendroid.standalone.exceptions....
1
vote
0answers
3k views

java selenium check if modal popup present

I am having trouble dealing with modal popup windows in selenium (webdriver java). public void setScoring() { try { Set<String> popUp = driver.getWindowHandles(); Iterator&...
1
vote
0answers
2k views

Specifying and running multiple goals in Maven

I have created a testing framework using Cucumber, Selenium and Maven. I am using the cucumber-jvm-parallel plugin to run my tests in parallel. Below is how my pom.xml looks: <?xml version="1.0" ...
1
vote
0answers
138 views

While executing disabled datepicker script by javascript, getting error. How to resolve?

Error: Caused by: org.openqa.selenium.WebDriverException: document.getElementById(...) is null Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' Code: package ...
1
vote
0answers
69 views

Are the TEXT locators different in android 6.0 and android 7.0 for Alert box?

I am facing an issue where TEXT property is in UPPERCASE in Android OS 7 while in OS 6 the same property is shown in Sentence Case for the same application. Can anyone suggest why this is happening ?...
1
vote
0answers
613 views

How to Wait until page is fully loaded with Intern js

I was trying to automate the UI testing of an application with Intern js. But I am having a problem finding the way to wait until the page is fully loaded. After researching for a while, I found ...
1
vote
0answers
286 views

Passing IWeb element to Implicit wait function

I'm following Page Object Model on my test suite. I have below method to wait for an element. public void WaitTillCssSelector(string elemantName, int TimefromSeconds) { ...
1
vote
0answers
78 views

Selenium : Facing Problem in retrieving data from Table where visible and hidden items share common tags

Helo All, I am facing issue in retrieving data from Table where visible and hidden items share common tags. Please guide me through .. <> HTML Code for Hidden items: <tr class="Bio Medical" ...
1
vote
0answers
1k views

How to access an Input file in the shadow DOM using selenium chrome driver?

Has anyone figured out how to access an Input file in the shadow DOM using selenium chrome driver? at a certain point at the angular.js page a button is clicked and in the function triggered by the ...
1
vote
0answers
2k views

java.awt.Robot does not work for handling “File Upload” dialog window when executed via Jenkins job

Robot class does not work when the selenium suite is executed via a Jenkins job. The same suite however works successfully when executed on local machine. Need answers for following: Is there any ...
1
vote
0answers
507 views

Downloading PDF files using PDF Box

I have a page with 3 links, all PDF files. They all refer to the same directory but to different files in that directory, all of which are pdf files (ending in .pdf). Manually clicking on any of ...
1
vote
0answers
56 views

How to get the name of all the test methods and functions in a test?

I am developing a framework where I need to do the reporting of my tests. I have to do this from scratch with out using junit or testng. I need to create a custom annotation @Testing and write a test ...
1
vote
0answers
433 views

File drag and drop works in Firefox but not in Internet Explorer

I am trying drag and drop from outside frame to inside frame. Draggable element is located outside iframe, but container which is located in iframe. I have already posted my problem here. https://...
1
vote
0answers
606 views

How to perform drag and drop on an Image Map Area element?

I am trying to automate an HTML webpage which requires me to drag an image map area element by 50 pixels to the right and then release the click. I tried various techniques, like using an Actions ...
1
vote
1answer
211 views

Finding dropdown name where only the first word matches given string using Selenium

I am trying to match the first word in a drop down list with a given string. What is happening is when I am creating a new drop-down name, it is getting updated by some different name, though the ...
1
vote
0answers
304 views

Selenium EventFiringWebDriver in page object model and refactored

I'm struggling with this one, how to implement EventFiringWebDriver (e_driver) without having a lot of repetitive code. As I'm understanding it, in order to capture finding elements and acting on ...
1
vote
0answers
159 views

Does it require to install all necessary software for slave in jenkins

I have built automation script and everything working perfectly. Now client want to run same script from his location. I am thinking to set his computer as slave in jenkins , but does it require to ...
1
vote
0answers
32 views

Include python tests in JS projects

Currently I am responsible for test automation and my company develops applications in Node.js. For web applications, I'm using python and selenium-webdriver. Is there any way to integrate the tests (...
1
vote
0answers
74 views

Accessing Data from Tables

I want to check if my entered information is inserted into the list in the table of the html page but working with tables is a little bit more difficult than a normal list. Could someone help me? My ...
1
vote
0answers
5k views

How to use selenium.captureNetworkTraffic in Python?

I'm interested in debugging my browser session and I found that it is possible to save HTTP requests with their answers to a file using captureNetworkTraffic in json format. But I can't find any doc ...
1
vote
0answers
620 views

Why a PhantomJS grid node is defined differently compared to other browsers

I am trying to set up one of my Selenium Grid nodes using PhantomJS. (The rest of the nodes are all working fine with Firefox browsers) Now generally, when we configure a node, we launch a selenium-...
1
vote
0answers
1k views

PDF Automation using URL opened in Selenium, not a new URL

Currently, I'm using Selenium Webdriver for c# and PDFBox to automate the PDF text of a report. Now, using PDFBox, we have the ability to parse a pdf given a URL link, with URL = new URL("link of pdf")...
1
vote
0answers
3k views

Unable to handle Google Authentication pop up window in robot framework test case

I am having a problem on handling google authentication pop up window in robot framework. The process I want to automate is - When a button( Sign in with google) is clicked , google authentication ...
1
vote
0answers
315 views

Integration of selenium and HPQC

What are the options available for integrating Selenium web driver .net framework with HP QC? I know API is available from QC but I am looking for existing frameworks or tools that I can use for same.
1
vote
0answers
519 views

Is there a way to find Element by xpath-Javascript?

Starting automation at my job and currently the way I've been doing it by xpath and button description. There are only classes, no id's, and right now dev is re-doing the UI. Therefore, CSS selectors ...
1
vote
0answers
521 views

Page Object Design: Is there a Javascript equivalent to Ruby gem “site_prism”

I'd like to know if there is a framework in Javascript (NodeJS) for Protractor which supports a clean way to define the Page Object Elements on a Page Object as site_prism does. I've already checked ...
1
vote
0answers
87 views

xss scripts through console of web-developers-tools

So, well I am learning selenium webdriver, junit4. I need to know, is it a proper way to add "XSS scripts" through the console of web developers tools? Can anyone help me with an example ?
1
vote
0answers
487 views

Occasional no response from Selenium Grid server - any theories?

While locally we're having no problems, on a virtual server we're running Jenkins which kicks off Selenium Grid to execute some of our tests. Exception has been thrown by the target of an invocation. ...
1
vote
1answer
71 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 ...
1
vote
4answers
2k views

Gecko Driver not navigating to URL

i am having a funny issue with my gecko driver. The browser loads however it does not redirect to the URL as stated below. Dim fireDriver As New FireFoxDriver(New FireFoxOptions() With {....
1
vote
1answer
1k views

WebDriver - Using loadablecomponent design for URLs with query parameters

For example, if the URL is - http://blah.com?origin=home&id=54&level=2. This could be a dynamically generated link on a webpage with 'id' and 'level' values from the DB. Now if I want to use ...
0
votes
0answers
24 views

Webdriver doesn't Click (sometimes) even after waiting for ElementToBeClickable

I am running the script where once clicked 'Download button which gives options to download 5 different types of file. Please see the attached image [https://i.stack.imgur.com/ra8Cn.png], [https://i....
0
votes
0answers
25 views

NullPointerException-webdriver null

I put a screenshot with getDriverInstance. After run. When I run the test, I get this error. At debug it tells me that the webdriver is null. Can anyone help me with a solution how to fix the problem? ...
0
votes
0answers
26 views

Python selenium - How to loop to register Mega.nz accounts with mails.json (Protonmail)

Everything is fine, but when the script ends it does not loop with the json information. It stays in the Protonmail mailbox and the script no longer works. Try to make the browser completely close the ...
0
votes
0answers
35 views

Python / Selenium is starting an old script before running new script. Do anybody can solve this issue?

I have a problem with Selenium(Python). Does Somebody know a solution? THE PROBLEM If I run a new Script the browser opens and runs an old script, then closes and opens again, and then runs the new ...
0
votes
0answers
13 views

ExtJS. How to select options from <Input>, if options is in downside DOM in div's? Selenide

I have an enterprise project. Dropdown menu's made so: There's field <input type="hidden" name="Some_id" id="Some_id" value="6"> <input type="...

1 2 3
4
5
9