WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Rather than running as a JavaScript application within the browser (with the limitations this brings, such as the "same origin" ...

learn more… | top users | synonyms

0
votes
3answers
22 views

Not able to switch on newly opened frame

Not able to switch on newly opened frame Below are the firebug details for my opened frame <html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden; height: 100%; border: medium none; ...
0
votes
0answers
35 views

WebDriver : selection is not working properly

I want to select Manage Customers & Projects but with below code 2 options i.e. Manage Customers & Projects and Manage Tasks both are getting selected. Not getting whats going wrong : ...
0
votes
0answers
22 views

Selenium Webdriver : Selection is happening twice

I want to select only Manage the customers and Projects . But did not getting , whats going wrong with below code. It selects both Manage the customers and Projects and Manage Tasks My code: ...
1
vote
0answers
25 views

How to locate or write Xpath for an element of an Hybrid app which has only class and no other attribute

I am new to mobile automation and Appium and unable to find a way to get xpath or locate an element, getting following node details in uiautomatorviewer: index:0 text: resourceid: class: ...
0
votes
1answer
33 views

Efficent way of checking if Element is Not Present

I currently use TestNG's assertFalse to make sure a particular element is Not shown when not logged in on a site. eg assertFalse(isElementPresent(PageElements.PDFLinkText),"PDF link present when not ...
1
vote
2answers
31 views

Look for a program that systematically scans an entire html document.

I am helping my friend with some medical records verification. In short, I have to through hundreds of medical records and pinpoint certain ones for verification. I want to be able to search through ...
1
vote
1answer
46 views

Handle the File Upload dialog in Protractor for IE11

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
0
votes
1answer
53 views

how can i switch to the new instance of browser in python selenium webdriver [duplicate]

i am using selenium webdriver with python, i am not able to find a way in python by which i can switch the webdriver to a new browser. My web application have multiple links and buttons Clicking on ...
0
votes
1answer
20 views

Blank screenshot with WebDriver

Im not sure why, but ever time my screenshot is executed, the images are saved as blank. heres the code: public void screenshotOnError() throws IOException { WebDriver driver = new ...
0
votes
1answer
20 views

Getting NPE on screencapture with an error

I am currently setting up PageObject with PageFactory Automation tests. I currently have a screenCapture.java and I try to call the method within the screenCapture when there's an error. Here is the ...
0
votes
0answers
22 views

unable to get testng report one by one both report is coming simultanously

I have two testng.xml file. I did entry for these two testng.xml file in pom.xml like that <suiteXmlFiles> ...
1
vote
2answers
52 views

Selenium WebDriver not properly waiting

I am trying to download a file from a website using a webdriver. But my browser is shutting down before it was able to properly export. I inserted a wait() before I call dispose() but it is not ...
2
votes
1answer
65 views

How FluentWait is different from WebDriverWait?

How is the FluentWait is different from WebDriverWait? I am using WebDriverWait having the polling interval set to : 500 miliseconds. Still, WebDriverWait returns after some delay (i.e. 2 - 3 seconds ...
4
votes
4answers
147 views

How can I work with file uploads during a Webdriver test?

This is a canonical question, intended to provide a comprehensive answer to many related questions During the course of a Webdriver test, I want to upload files. However, this opens a native file ...
0
votes
0answers
21 views

Protractor is showing the same stack trace for different errors

I am using protractor to test and angularJS application. Most of the errors I am getting are showing the same stack traces related to promises, when this is not where the actual error is occurring. ...
0
votes
1answer
61 views

How to connect node to hub that are in different networks

If I use case when hub and node are on the same network - here is how I do this: launch hub: java -jar selenium-server-standalone-2.45.0.jar -role hub -port 4444 launch node: java -jar ...
0
votes
1answer
79 views

Python selenium - how can I loop a function to make 100 Copy accounts using different emails

How can I loop a different string into the email field, or a variable without actually having to make a list that consist of 100 different emails. For example is there a way i can send money@qa.test ...
0
votes
2answers
54 views

Unable to launch firefox with Selenium Webdriver

I'm starting to build a set of simple automated tests. I have: WebDriver driver = new FirefoxDriver(); driver.get("http://www.yahoo.com"); On the first line (where I instantiate the WebDriver), I ...
2
votes
2answers
65 views

How do I copy substring to array of strings

WebElement ELR = driver.findElement(By.id("trades-list")); List<WebElement> list = driver.findElements( By.xpath("//*[contains(@id,'trade-summary-92')]") ); String[] tradeId = null; for(int ...
0
votes
1answer
37 views

Max no.of records can we test in selenium by using data driven framework

I have one scenario say example In shoppong cart web application , in the ceckout page while selecting the address,I have two drop downs which are states and city. we needd to select the state and ...
0
votes
0answers
35 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
2
votes
2answers
57 views

Opening Multiple windows of firefox in the same test case

My question might sound very odd to you all but just wondering if this is possible for us. Okay so I have written 10 cases for my login page in selenium using C# .net. But they take quite a lot of ...
1
vote
1answer
23 views

Problem with switching windows in Selenium WD

I hope this day finds you well. I'm working on an automation suite and I've run into an annoying problem when it comes to switching windows. I have a script which clicks a button which opens in a ...
1
vote
1answer
87 views

Selenium Webdriver: Firefox: 'Cannot press more then one button or an already pressed button'

I'm really struggling to automate some drag and drop functionality in a web app. All I need to do is click a link on a top menu bar, hold down on it and select the first menu option. It works fine ...
0
votes
2answers
43 views

How to select category from Ebay dropdown list? [duplicate]

Hi I'm learning automation testing using Eclipse, Selenium Webdriver, and Java. I'm practicing. I'm trying to select the label 'Consumer Electronics' from the Ebay dropdown menu and search only in ...
0
votes
1answer
42 views

Access WebElement in selenium testng [closed]

having code like this, with WebElement inside of class @Test public void testTable() { WebElement simpleTable = driver.findElement(By.id("items")); simpleTable.click(); } how ...
0
votes
1answer
82 views

How to validate maximum character check in webdriver/java

I want to validate the maximum character limit of the text field in webdriver/java
0
votes
1answer
34 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
0
votes
1answer
40 views

is_displayed with python and web driver

So when my test pass it will show the "yeah" word in the end, however when it fails , it will only show and exception NoSuchelement and the word "Failed" will not show up anywhere. its like else ...
0
votes
3answers
76 views

Finding grandparent of an element using xpath in selenium

I want to click the parent of an element if the text within the child matches a certain string. I am using contains to find the text and :xpath,"../../" to find the parent. Here is ruby code: ...
1
vote
2answers
59 views

Does Selenium depend on internet speed

I have a small question regarding selenium automation. I am using selenium automation for one website(live). Does its performance depend on internet speed?
0
votes
6answers
97 views

Which can be better to work with Selenium WebDriver - Java or Python? [closed]

I have start learning Selenium WebDriver, but i am confused between Java and Python. Which language should i choose? I do have basic ideas of Core Java but haven't wrote a single piece of code with ...
0
votes
1answer
110 views

Test recording with Selenium IDE vs manual programming test framework

I'm just beginner in this field. I have already created simple tests using Selenium in .NET environment together with NUnit. I also hard coded the same or similar tests for my framework. My question ...
0
votes
1answer
105 views

Help with else if statement Webdriver Selenium

I have this code below which seems to not go to the else if statement. It runs the first part but never seems to go to part 2, if element 1 is already selected. Thanks if ...
0
votes
1answer
54 views

Help finding child class with cssSelector syntax

How can I find this element by css this is what I have so far. driver.findElement(By.cssSelector(".simplecolorpicker > span[title*=#ff8081]")).click(); Here is the image of the html:
0
votes
1answer
65 views

Automation framework structure for two browsers simultaneous testing

Some high level (UI) smoke test scenarios should be automated for the web application made for audio/video/chat conference calls. At least one to one(peer-to-peer) users should be used to simulate ...
2
votes
1answer
78 views

Error: cannot find symbol in XSLT + TestNG Report

When I followed this link LINK to generate XSLT Report Using testng and to send email reports getting error message (Ex: package org.openqa.seleni um does not exist, etc...0). Please suggest me. ...
0
votes
0answers
35 views

Internet Explorer doesnot login to website of remote desktop is not opened

I am writing a simple script that will login to a website, I am trying to run it through Jenkins job on a remote desktop , I have placed my code on GIT Hub and configured Jenkins to run test. My ...
0
votes
1answer
309 views

How to generate a report for test case in selenium webdriver using javascript

I am working on selenium webdriverjs , Now I want to know about reporting tools upto now I am not using any reporting tools . Now I am decided to use reporting tool , Please suggest me best reporting ...
0
votes
1answer
167 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

sdk path-/usr/local/adt-bundle-mac-x86_64-20140702/sdk apk path-/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch Activity,Platform Name, Automation ...
-2
votes
2answers
38 views

selenium webdriver getting error as with implicitlyWait was undefined

package mypackage; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import ...
0
votes
3answers
71 views

After scrolling the page, xpath of a element is not present

I have requirement that needs to check a div on home page that contains sub images. I am trying like this My Sample Code : module.exports.openurl('www.google.com', "Online Shopping | Buy Phones, ...
2
votes
1answer
158 views

Web browser (in)compatibility with Selenium WebDriver

Very often, when my local or remote instance of Firefox is automatically updated, it stops working with the most recent version of Selenium WebDriver. They simply become incompatible until next ...
0
votes
3answers
100 views

How to automate Mouse hover action in webdriver/java/kendo ui

I just want to automate mouse hover function for my project the scenario is Scenario : There is a text box, if i hover on it,the edit icon will enable and i have to click that icon.
1
vote
1answer
55 views

latin characters getting displayed as junk characters from the webdriver getText() command

I have a requirement where I am trying to automate the registration form which is in French language, while automating I am trying to get the text of the error messages which are in French(localised) ...
0
votes
1answer
123 views

How to identify the status of a toggle button?

I have some thing like there is a toggle button of having "Show" and "Hide" as values, I want to know the status of the button before i am going to perform some action on this toggle button. The code ...
0
votes
1answer
293 views

TypeError: Error when calling the metaclass bases module.__init__() takes at most 2 arguments (3 given)

I'm ne to coding and python. Not sure where exactly I should be looking to fix this error. from UIMap import tomcat8LoginPage, ...
1
vote
1answer
197 views

How to use Python/Webdriver to go through multiple URLs and take screenshots using loops? [closed]

I want to use Python/Webdriver to run through many client websites (and subpages within those websites) and take screenshots of each page. Currently, I have this working, but all clients are in their ...
2
votes
1answer
191 views

How do I create a loop within my selenium python script to select every option within a dropdown menu

Im new to python, or coding for that matter... Currently I have a python script to select one option within the dropdown menu, but I would like my script to repeat each time and select the next ...
0
votes
2answers
220 views

How to use Xpath 'contains()' function to locate a Web element in Selenium Webdriver?

I am a beginner in learning Selenium WebDriver and XPath. I am trying to get the "<td>" Element of the Nested Table which Contains string '7-8-9.' Following is the HTML page code: <!DOCTYPE ...