Questions tagged [selenium-webdriver]

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

460 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
2answers
93 views

Cannot locate elements on this page. Firebug comes empty with status as loading. How to automate it ? (I wish to click OK)

I want to automate this page and click Ok Button, but the page is not displaying in HTML in Firebug and status is coming as "Waiting for ..." In such cases how to automate the click without elements ?...
1
vote
0answers
470 views

How to extend Selenium2Library by creating new RobotFramework keywords using Selenium WebDriver in Java?

I'm trying to extend the Selenium2Library python library (1.8.0) by implementing new Robot Framework keywords using Selenium WebDriver in Java. In order to do that, I need to be able to retrieve the ...
1
vote
0answers
2k views

Compare images on HTML5 canvas using Selenium WebDriver in Java

I'm a beginner in Test Automation and I'm working on a web application like MS Paint and I'm facing a problem. Here is the test scenario: I will drag an element from the toolbar on the HTML5 canvas ...
1
vote
0answers
373 views

How to handle browser language notification in android using appium?

I was trying to automate a website which is in german. But when I run the test on android device using chrome browser, language translator notification appears. Can anyone let me know how to handle ...
1
vote
0answers
353 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
90 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
502 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
176 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
548 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
598 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
65 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
139 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
626 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
288 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
86 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
521 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
435 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
622 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
2answers
230 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
307 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
160 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
621 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
319 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
520 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
524 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
504 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
74 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
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
1answer
11 views

Selenium is not finding button even though it has a Class Name and XPath

I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, "Message: no such element: Unable to locate element" Here is the HTML <input ...

1 2 3
4
5
10