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
1answer
2k views

Unable to add Safari developer certificate in safari

Enviornment: Maz OSX browser : safari wedriver: 2.24.1 Created safari extension and safari developer certificate from apple developer site. tried adding the certificate in safari keychain login . As ...
1
vote
1answer
973 views

Choosing framework type for selenium RC/Webdriver

I had opportunity to work in around 3 different projects, where selenium have been used extensively. Among them 2 were based on Data driven (say test cases driven by testng XML for each scenario with ...
4
votes
4answers
6k views

Quicker way to assert that an element does not exist

The goal of my test is to assert that a popup does not appear after certain actions. Previously to test if the popup exist, i have used exception handling. try: ...
4
votes
2answers
1k views

Issue with losing focus of “hover” command when the mouse is outside of the active window

If I automate mouse actions using Selenium2/Webdriver in combination with Firefox 12, I can easily get the "mouse" to move to and hover over a context menu so the sub-menus are seen. However, if I ...
1
vote
2answers
4k views

"Element is no longer attached to the DOM” StaleElementReferenceException when selecting HTML table row

I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I ...
1
vote
3answers
1k views

Selenium Webdriver - Unable to get focus back to child window

I have scenario where clicking on some link in parent window opens a new window, after performing the actions on the child window, iam unable get back focus on the parent window, I have used the ...
3
votes
3answers
280 views

Rule of thumb for using wait()

A rule of thumb for using wait() would be before navigating to a different page. For Ex : WebDriverWait(driver,10).until(lambda driver: driver.title.startswith("Submitted!!")) What would be other ...
1
vote
1answer
3k views

Set attribute of an element using webdriver + python

I am trying to automate uploading an image. The uploader is a Flash object and using AutoIt is not an option. So I am trying to work my way around this with just webdriver. The idea is to 'set' the ...
0
votes
1answer
524 views

SafariDriver is not responding after opening a URL

I am trying to run safaridriver to automate google page as given in https://code.google.com/p/selenium/wiki/SafariDriver But what I can find is driver open the url and loads the home page, but after ...
2
votes
2answers
908 views

Why does IE9 running WebDriver scripts gets out of focus if other applications are open?

I have automated tests running on IE9 on Windows 7 64 bit. The application under test is a simple webform with a 'Next' button on each page. When i run the automated tests on Firefox 12 they run in ...
1
vote
0answers
351 views

Passing session while switching control to a pop-up window

I am trying to choose a date by clicking an image which results in a pop-up window with a date picker in it.But when done through selenium the session expires and the login page appears in the pop-up ...
4
votes
1answer
261 views

Read requests and responses made by browser on naviagating a web page in C# webdriver

I wants to read all the requests and responses made and get by the browser on navigating on a page. For ex: If I navigate to http://www.yahoo.com then we observe that browser is making a lots of GET ...
4
votes
5answers
5k views

How to handle self-signed SSL certificate error in IE8? (Selenium Webdriver + Java)

I am literally stuck to this problem for two days now. Scenario The website that needs to be tested has a self-signed certificate. So Internet Explorer (8 in Windows XP) shows "The security ...
0
votes
3answers
1k views

How to automate the action on a canvas object, when the canvas element has no name or ID in Selenium?

I want to automate the testing for a digital signature, which is a canvas element...Can anyone provide me with sample code, which could be used...I have tried, selenium.clickAt(), ...
0
votes
1answer
781 views

SSO in Selemium web driver

I am trying to run selenium web driver(Firefox) test cases which will need a single sign on (web). Issue over here is i have to sign in manually with my OTP every time i tear down the test case. So i ...
1
vote
2answers
3k views

How can I access a site protected with basic HTTP authentication using Python, Selenium2, and Chrome Webdriver

I'm using the Python bindings for Selenium2 with the Chrome webdriver. I need to access a site that is protected with basic HTTP authentication. from selenium import webdriver driver = ...
1
vote
1answer
1k views

Iterating through a table : Avoiding stale element exceptions (Webdriver - Python)

Here is an interesting problem (or at least i think so) As an Admin I have a table with N entries (51 to give a number). Each entry in a row is a recruiter name with a link to 'Login' as that person. ...
3
votes
4answers
9k views

Downloading a file in Internet Explorer through Selenium

I have to automate a case in which I have to download an Excel file using Selenium IDE.I have done this in Firefox by using custom profile feature which automatically downloads file and saves it into ...
5
votes
4answers
3k views

Testing Page Layout with webdriver

Has anyone tried to test the page layout of a website using webdriver? To be specific, using webelement.getPosition() and webelement.getDimension(). Shouldn't these two methods be enough for testing ...
2
votes
4answers
4k views

Click submenu which is dynamicly visible in Selenium WebDriver

In my scenario, I need to click the submenu that's only visible when its parent menu is in 'mouse over' status: MainMenu (button) SubMenu of MainMenu (span) SubMenu of SubMenu of MainMenu ...
1
vote
5answers
6k views

WebDriver: Can I inject a jQuery script for a page that isn't using jQuery?

Is it possible to inject a jQuery script into a page if the page isn't already using jQuery? We have a few pages in our sites where we don't add jQuery if it doesn't need it, but I'm using it to ...
2
votes
3answers
8k views

How to click a link / button implemented as a div or span element with WebDriver

in my testing I need to click on a 'link' or a 'button' (actually it just looks like and functions as a link or a button) that is implemented as a div (or span) element. With Selenium IDE, I tried ...
1
vote
1answer
493 views

What is the max number of threads allowed for running TestNG tests in parallel?

I’m trying to run TestNG tests in parallel, right now I’ve set “parallel=tests” & ‘thread-count=25’ but I see that only 10 threads are running at a time. Is this testNG’s thread limit? Is there ...
1
vote
2answers
6k views

Problem catching Selenium Webdriver NoSuchElementException

I have many test cases written in C# using Selenium2 Webdriver with NUnit. I have a problem that when a NoSuchElementException is thrown, it is treated as an unhandled exception despite me using a ...
1
vote
2answers
3k views

Selenium 2.0 WebDriver: Clearing Session Data

Is there a way to clear out session data for a driver instance in WebDriver? My code is written in C# (and NUnit), but I'm not picky on the language for the answer.
0
votes
3answers
4k views

Running WebDriver tests in parallel using testng.xml

I'm trying to run WebDriver tests in parallel using testng.xml. I'm able to run testng tests in parallel by using parameter parallel="tests" but running with following paramters, "methods", "classes" ...
2
votes
1answer
952 views

Inconsistent results when capturing javascript errors with WebDriver

I'm using a technique I found here, to capture javascript errors for testing purposes. It's a technique that is frequently recommended on Stack Overflow for those who need to catch JavaScript errors ...
1
vote
2answers
2k views

Speed up launch of WebDriver Firefox Window

When WebDriver initializes, there is a long waiting time when a browser window launches before the actual automated test begins. How can I speed this up? Is there a way to have a browser window ...
2
votes
2answers
4k views

How to specify a Firefox profile name when using webdriver + python

I'm using python 2.7.1 and selenium 2.20.0. I have a seperate firefox profile called "selenium" which I want to use when running the webdriver. I managed to do it by specifying the complete path to ...
4
votes
2answers
2k views

How can I send the action “Ctrl” + “Alt” + “Double Click” to the browser

I am writing automated tests for a site at work and we have certain screens that when we send a specific set of keystrokes, a section of the page will become visible and allow` us to see information ...
2
votes
5answers
9k views

How to start a Selenium2 WebDriver window in background?

I have a series of Selenium2 test cases in C#/NUnit that are run sequentially. Each test case runs in a new instance of the WebDriver (and this is necessary) - which means that each time a new test ...
0
votes
2answers
737 views

FlexWebDriver does not work with YouTube under FireFox?

I want to make a script that plays all videos of YouTube channel and perform player settings and return status. Execution of the following command does not create any error on java stacktrace but, ...
1
vote
3answers
11k views

WebDriver: navigate to new browser window

How do I open a new browser window in Selenium WebDriver? I'm using C# client drivers, but if you know with any language, I should be able to find the correct class/method in C#. On Stack Overflow, ...
3
votes
4answers
10k views

selenium: How to identify the button WebElement

On my web page I have the following two buttons: <button onclick="addToSelected('newApplicationForm');">Add Strategy</button> <button ...
4
votes
4answers
12k views

Running WebDriver without opening actual browser window

I've heard rumors that Selenium WebDriver can run without opening a real browser window, meaning it runs in the background. I am using the C# Client Drivers, FirefoxDriver within the automated tests, ...
0
votes
1answer
903 views

moveToElement function not working on IE when browser is minimized or not active using Selenium Webdriver

I'm trying to automate an application using Selenium Webdriver. The moveToElement function fails when the browser is minimized or not active (keep other app active). It works when I keep AUT browser ...
3
votes
3answers
779 views

Selenium automating ICEFaces Application - locator for dynamically generated ids

I'm trying to automate a very short sequence in a web application developped using ICEFaces. I need to click on a button which is coded as <input type="image" title="Unterbrechen" style="padding: ...
2
votes
1answer
1k views

Open [hidden] new window in webdriver without instantiating new driver in WebDriver

I've researched this to some extent already by searching StackOverflow and SQA, but cannot find the answer. Is it possible to open a new WebDriver browser window from the current FirefoxDriver ...
4
votes
2answers
743 views

What's the best approach to asserting values with automation testing test cases from complex business logic?

Suppose you have automation tests (my example uses Selenium) to assert complex business logic for a web site. What is the best way to assert that thousands of different test cases are outputting the ...
3
votes
3answers
354 views

Going past the Chrome security warning

I'm trying to test a page without a security certificate, which Chrome flags up. This blocks my tests. (I have to manually click "Proceed anyway". Is there a way to disable this warning?
7
votes
2answers
15k views

WebDriver: find elements by text

I know that WebDriver can locate links through their text, using find_element_by_link_text or find_element_by_partial_link_text. Is it possible to locate any element (such as li, div, span, ...) by ...
4
votes
2answers
263 views

How is Selenium 2.0 different from the previous version, apart from the WebDriver API ?

I am slowly but surely starting to lean towards selenium 2.0 as everyone is really making a big fuss about it. I would like to know how much different is selenium 2.0 from the previous version apart ...
2
votes
3answers
967 views

Is there an Interface to Run Selenium 2.0 WebDriver Test Cases other than NUnit?

Is it possible to wrap around Selenium 2.0 WebDriver Test Cases with anything other than NUnit for C# code? Or perhaps NUnit has a nice application to do this with? If not, how can I wrap around the ...
2
votes
2answers
935 views

Ctrl+Click using WebDriver

There is a similar question concerning Watir-WebDriver. What is the best way to do Ctrl+click on a DOM element?
4
votes
1answer
1k views

Send keys to no element in particular

The way I know of sending keys using the WebDriver Python bindings is as follows: element.send_keys(value) How can I send a key (specifically the Escape key) to no element in particular, just to ...
3
votes
2answers
2k views

Drag-and-drop failing on complex jQuery UI

Using the Python bindings of Selenium Webdriver, I cannot get drag-and-drop working on a "complex" jQuery UI example with ActionChains.drag_and_drop(). (It does work on a simple example.) My testing ...
3
votes
3answers
9k 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. ...
3
votes
2answers
3k views

Alternative for user extensions in Selenium 2 WebDriver w/ jQuery?

I've been switching over our company's automation scripts from Selenium IDE to Selenium 2.0 WebDriver. The problem is that we have a crap load of user extension custom commands because of all the ...
2
votes
1answer
633 views

Is there a way to disable a JavaScript function of the tested application from Selenium WebDriver automation project?

I need to disable a particular JavaScript function of the main application for which I am creating automated tests using Selenium WebDriver. Is there a way to do this?
4
votes
4answers
2k views

Running Selenium tests as a scheduled task

I'm trying to run a Selenium WebDriver script written in Python on a Windows 7 64-bit box as a scheduled task. The test works pretty well when run as a batch file from the command prompt, but when ...