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

1
vote
4answers
67 views

Test management tool for Selenium webdriver?

My company recently began migrating from using QTP to Selenium webdriver. We are looking for a test management tool similar to Quality Center (what is QTP primaly for) that would work well with ...
0
votes
0answers
15 views

Search Dom for multiple elements using explicitwait

Hi I'm using selenium webdriver and when I click to a certain website I want the webdriver to return a list of elements with similar classes, in this case a list of elements that, once clicked/toggled ...
0
votes
0answers
16 views

On different OSes, what standard files can I assume exist which can be uploaded?

One of my webdriver testcases does a file upload to the website, in order to test that attachments can be added to message posts. This is implemented easily enough with a single line of code: ...
0
votes
1answer
26 views

Internet Explorer and proxy PAC file problem

I'm having trouble with making IE use proxy pac file. But it works ok with Firefox and Chrome. What I do: 1) Prepare proxy config proxyPacFile = "file:///" + proxyPacFile; Proxy proxyPAC = new ...
0
votes
2answers
49 views

Verify two elements exist next to each other on a page

I'm trying to verify that an element exists on a page next to another element. I'm using Selenium Webdriver with Python bindings, but can't figure out how to do this...i'm a Selenium/Python noob BTW. ...
1
vote
1answer
72 views

Mocking HTTP reponses in Selenium Web Driver using Python

I am currently experimenting with the Python version of Selenium Web Driver. Using the driver has been straight forward so far but I have been struggling recently with the issue of mocking HTTP ...
0
votes
1answer
41 views

Clicking on java script generated dynamic elements using Remote Web Driver in selenium

I have one web page, all the elements on that page are generated by java script code. I want to click on one of the button on that page, I was able to do this using the chrome driver,FF Driver but ...
2
votes
2answers
100 views

Verifying if an image Is displayed on a webpage

I have read that there is no "sure shot" way of knowing that an image is loaded or displayed on a webpage using Selenium. I want to know the reason behind it, as to why this is completely not ...
2
votes
1answer
92 views

Selenium Webdriver: How can I getText() if there's another text within div?

I have the following html: <div class="dialog-components"> <h2 class="dialog-title"> <div class="help-link"> <a href="http://google.com">Helps</a> ...
0
votes
3answers
79 views

PageObject. Should I initialize all pages at start or not?

Java + Webdriver + PageObject. I have a question about pages organization. At this moment I have class which contains all pages in the project. At start all pages are initializing, and it looks like ...
1
vote
1answer
64 views

Running selenium scripts through web

I have developed a web page which takes all inputs for test cases such as: locators, input data, urls to open, etc. I run the page in tomcat server. Whenever I'm executing the test case with that web ...
0
votes
0answers
33 views

How to get window ID with Selenium / WebDriver

Can anyone please suggest me how to use Set and Iterator concept to get parent and child window id? package pack1; import java.util.Iterator; import org.openqa.selenium.Alert; import ...
1
vote
1answer
60 views

Automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS

I'm automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS. 1) To get started with WebDriverJS for Node, I downloaded a copy of the ChromeDriver and selenium-server-standalone ...
1
vote
1answer
47 views

Can I email the testNG reports directly through selenium?

I want to send the testNG reports directly through mail to the stakeholders once its complete execution. What is the best possible way for it?
0
votes
2answers
126 views

Want to build data driven framework with selenium webdriver [closed]

I have knowledge of selenium and want to implement data driven framework. So, I need basic knowledge for this at a starting level so that I can proceed in my organization
1
vote
2answers
37 views

Webdriver Java : How to identify two identical Ajax Control using xpath

WebApplication has Calender Ajax Control twice on same page. I cannot use id's as ids get generated by Ajax call dynamically . So identifying it using xpaths and classnames. I can identify First ...
0
votes
0answers
61 views

Error when clicking element::: org.openqa.selenium.WebDriverException: d is undefined

Getting following error when clicking. Scenario: In application I have collapsed button on expanding that , its submenu are listed and clicking on sumenu open that particular page. ...
0
votes
3answers
44 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
43 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
27 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: ...
2
votes
1answer
115 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
41 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
243 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
174 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
41 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
27 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
30 views

Unable to get testng report one by one; Both reports are coming simultanously

I have two testng.xml files. I did entry for these two testng.xml files in pom.xml like this: <suiteXmlFiles> ...
2
votes
4answers
96 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
254 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 ...
6
votes
4answers
728 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
35 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
209 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
180 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
99 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
88 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
56 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
64 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
110 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
55 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 ...
2
votes
1answer
148 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
79 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
73 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
185 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
45 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
80 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
201 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
63 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
126 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
245 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 ...