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" problem),...

learn more… | top users | synonyms

6
votes
0answers
233 views

select_by_value causing odd issue with the DOM

I'm new to Python and Selenium testing so please forgive me if this isn't written right. I've been asked to look at the test that does a few actions on a form. The form has 2 text fields, a drop down, ...
0
votes
2answers
3k views

Setting TestNG test case result as PASS/FAIL as per my requirement

I have one requirement, I need to read the test data from the excel sheet and after the test case execution I need to write in to excel sheet as PASS/Fail/ Skip. I have used TestNG framework,Below ...
0
votes
0answers
32 views

How do we scroll down in Native app using Appium? Eg: Terms & conditions/

I want to know how do we scroll in native Application. For eg 'terms and conditions' page. I am using Appium using selenium web driver.
4
votes
1answer
74 views

What bugs cannot be found with PhantomJS?

How credible is testing performed with PhantomJS WebDriver? What are types and examples of bugs that can be found with Chrome or Safari that cannot be found with PhantomJS? PhantomJS is a scripted, ...
1
vote
1answer
4k views

How to find dynamically created elements in drop-down list based on input entered using Webdriver and c#?

I'm trying to test a page that has an input but really its a drop down list. The user enters text and then a dropdown appears based on what the user inputted. They are groups that are in the database. ...
0
votes
4answers
390 views

Unable to enter the text in a text box

I am trying to enter the text in a textbox, but I am getting an error as follows org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only Anybody can help ...
8
votes
9answers
20k views

Using Selenium Webdriver with Windows Authentication

I'm attempting to create some selenium tests for a website that requires windows authentication. I got my first test up and running fairly easily, but it pauses as soon as the system prompts for ...
15
votes
11answers
25k views

Load Testing, Selenium Vs Jmeter Vs other tools

I have been using Selenium/Webdriver for functional testing in a grid setup. We are in the process of transitioning to a Solr based search service. I already have Solrmeter for load testing the ...
1
vote
2answers
473 views

Which Programming Language is more supportive to start with Selenium? [closed]

I am looking to start with selenium, so please suggest me which language is good for automation testing?
5
votes
4answers
17k views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
1
vote
2answers
49 views

How to locate xpath for given tag?

I am trying to automate one of site and the below are the html code for same <a href="http://register.rediff.com/register/register.php?FormName=user_details">Create a Rediffmail account</a&...
0
votes
1answer
136 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 ...
1
vote
0answers
69 views

Selenium - sendKeys() not inserting value into textbox

I am not able to validate an international number text box in Selenium. I have tried earlier by name, class and other locators but it is not inserting the value into the textbox. Below is the text ...
1
vote
1answer
338 views

Facebook updating profile picture using selenium webdriver

Using Selenium WebDriver I'm not able to click on update profile picture in Facebook. The html snippet is: <div class="_156p">Update Profile Picture</div> How do I locate the element?
2
votes
2answers
1k 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
13 views

Assert Add to cart is diplayed for each product

I want to check after I search for any product, there is whole list of products dispayed on page. I want to check Add to Cart button is displayed for each product. How do I check it??
1
vote
1answer
2k views

How to select Security Certificate From security Dialog

The problem I would like to solve is as follow: go to a website which is protected by client certificate authentication using browser once the security challenge dialog box is shown, select on the ...
12
votes
5answers
22k 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
33 views

Selenium- what is the appropriate waiting method between pages navigation?

I have a problem with the waiting used between pages navigation. I need to navigate to all links in the current URL. and then navigate to each link to check a condition if specific text appears or not....
1
vote
2answers
55 views

How to handle dynamically changing id in dropdown and if I select class then it shows three matching nodes

html snippet: <div id="isc_PT" class="selectItemText" tabindex="5637" style="width:123px;height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" $9a="$9d" $89="isc_SelectItem_8" ...
2
votes
0answers
384 views

Selenium Webdriver and OpenLayers

I would like to check that the locations asset on map (openLayer) are the same with some asset in a row. What is the best way to do this? I'm using the TestNG framework.
6
votes
5answers
15k views

Is it possible to stop page loading on the browser using selenium web-driver?

I searched online, but couldn't find anything about how to stop page loading over a browser using selenium web-driver. Any idea for the same?
0
votes
0answers
2k views

Why can't my Selenium Grid VM node get parameters from/register to the hub?

I tried to set up a Selenium Grid node on a virtual machine. I am using VirtualBox for the VM and Jenkins (with VirtualBox plugin) to set up the grid. When I try to register the node, I get the ...
2
votes
1answer
114 views

Facing a problem while switching frames with Selenium

I have a problem with switching frames in Selenium. I'm using Firefox Webdriver. In the first step I'm switching to Masterpass_frame then I click on a button to force the frame to reload. Then I ...
5
votes
1answer
94 views

How to Run e2e tests on multiple browsers in series?

I am running e2e tests using Protractor on a VM through azure. I want to run tests on multiple browsers, which Protractor allows me to do by adding a list like this (from the protractor.config file): ...
3
votes
5answers
199 views

Webdriver - Page Object Validator

For a while I wrote test for our web application using the Page Object framework. But test after test, I notice, I always wrote the same kind of assert. MyPage page = navigateToMyPage(); page....
2
votes
1answer
37 views

Can I shift to SAP Testing [closed]

Currently I am working on manual and automation testing(selenium) and I am interested in SAP testing. If I learn SAP testing, will it be useful after learning SAP testing. If I attend interviews with ...
3
votes
3answers
2k views

Problems with maintenance of Selenium on grid service

We have cluster of 5 nodes with all of them are only Firefox nodes. We have run into so many issues maintaining the grid up and running. Selenium nodes goes out of memory (JAVA heap space issues) ...
3
votes
3answers
7k views

WebDriver Clicking button issue in IE 11

Have a suite of web-drivers tests that run in chrome and IE 10, but will not run in IE 11. The tests fail in IE-11 when clicking a button as the following action (a form popup) does not occur. I ...
1
vote
3answers
1k 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: test=@...
0
votes
4answers
11k views

How to handle “Time out receiving message from the renderer” in chrome driver?

I am new to selenium, I'm facing "Time out receiving message from the renderer" in chrome browser while running test with selenium 2.41 and chrome 2.9x. I have tried many tests to reproduce the issue, ...
4
votes
1answer
657 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and I am unable to proceed but I am able to do it manually. Now to proceed with ...
4
votes
6answers
19k views

WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?

There's a bug in the chromedriver.exe Chrome driver for Selenium's WebDriver API. You can't use send_keys for certain types of inputs, like for the jQuery plugin "EZPZ Hint". It works okay on simple ...
0
votes
0answers
19 views

Unnecessarily wait 4 minutes on a page which has Google map as a field

Environemnt - Java + Web Driver + Java based application. In our application, we use google maps as an embedded component/object (using - maps.googleapi.com). There are other components/fields on ...
0
votes
3answers
163 views

How to run multiple test cases without running before and after class again and again

I want to know how run multiple files without running the before class() again and again. E.g.: Consider i am writing test case for GMail login.java : Which contains complete testing of the login ...
2
votes
2answers
92 views

Using WebElement instead of By - is it possible?

In my Java WebDriver test I use method findElements() to check if an element is present on the page. I use the Page Object Pattern, so the element I want to check is declared in SomePage.class. In my ...
2
votes
2answers
3k views

How to verify whether selected item is exist in another page? (Ecommerce application)

I am trying to verify selected item is exists in another (Cart/Shopping Bag) page, for EX: I am buying one/many items from application and then I will move all the items to Cart/Shopping Bag, here I ...
5
votes
5answers
28k views

Locating element by link text (anchor tag innerHTML) or xpath fails in Selenium 2.0 Webdriver

I'm using Selenium 2.0 web driver. My script keeps failing whenever I try locating something in my page. It throws an exception whether I locate the element by LinkText or by XPath. driver....
1
vote
3answers
239 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
1
vote
1answer
30 views

Why can't I use jQuery selectors from WebDriver's CssSelector if jQuery is loaded on the page I'm testing?

I'm testing a page on which jQuery is loaded, using WebDriver and ChromeDriver. I'd like to use some jQuery selectors, particularly the :contains() pseudo-selector for finding a node based on the text ...
-1
votes
2answers
4k views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
8
votes
8answers
2k views

Is writing unit tests difficult for me as a QA engineer?

I currently work as a QA engineer and work a lot with Java, Selenium and test automation. But, unit tests are something the developers have been doing and something that I fear. Is it difficult? Do ...
2
votes
2answers
2k views

Selenium: How to access the same session in a new window?

I have search throughout the internet but none of the answers I found have a clear solution. I am using selenium webdriver with Java. My test needs to verify when you save your login information ...
5
votes
1answer
150 views

What language/protocol do web browsers use for accepting automation requests?

The WebDriver API allows browsers to be automated, such as for end-to-end testing. Specific implementations exist, such as the standalone ChromeDriver or InternetExplorer Driver executables or the ...
1
vote
1answer
82 views

Firefinder doesn't find element but Firebug or Selenium IDE do

I have a problem with finding web elements in my web application. When I use Selenium IDE everything is ok, the element can be found. In Firebug or Chrome developer tools is ok as well (element is ...
0
votes
1answer
525 views

Selenium WebDriver Stops when Window goes Out of Focus?

I am running a Selenium WebDriver Script in java to read excel file and write data in a Web application. I am instantiating a Firefox Webdriver. The problem is that Script runs fine, but when test ...
4
votes
7answers
2k 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 ...
2
votes
5answers
26k views

Not able to scroll down page using Selenium webdriver

I want to scroll down a page that is coming inside a form, not on the main page. I tried this code: JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", "...
1
vote
2answers
14k views

Selenium: driver.findElement(By.xpath(“xpath”).click(); failing

The command driver.findElement(By.xpath("xpath"). click(); is not working in Web driver. Kindly check the below code written in selenium RC and webdriver. Selenium RC : public void ...
-2
votes
4answers
63 views

How to move inside else not to catch? [closed]

i am using selenium with java public void main(String args[]){ try{ if(ele.isDisplayed) { syso("test1"); } else { syso("test2"); } } catch(Exception e){ ...