Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

learn more… | top users | synonyms

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 ...
1
vote
4answers
12k views

How to configure selenium Web driver into Eclipse

I want to Integrate the selenium Web driver test into eclipse, but i am really stuck at this point. Can any one help me at this point.
0
votes
3answers
3k views

how to start work with selenium web driver any reference site for selenium web driver? [duplicate]

Possible Duplicate: Where can I find information on getting started with Selenium 2 I want to learn selenium web driver from the scratch. any one suggest me the reference site for selenium ...
7
votes
1answer
3k views

Extracting hidden text with Selenium

I'm trying to extract a certain message from my app. The text starts up as visible and then changes to style= "visibility: hidden" the visibility period is rather short, and I was wondering how can I ...
5
votes
1answer
5k views

“java.lang.NoClassDefFoundError” Error when running Selenium RC script

First of all I have recorded the script in Selenium IDE, then exported into the junit4 (RC), then copied the junit4 (RC) code into Eclipse IDE. When I run the project with junit test, I found the ...
0
votes
3answers
2k views

How to determine whether a WebElement is a child of another WebElement?

Is there an easy way to find a child element from another element? We have a set of containers which hold many modules, and I'd like to ensure that they are displaying in their proper locations. The ...
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
0answers
258 views

How can I automate testing of HTTP requests? [duplicate]

Possible Duplicate: Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver? I'm using Selenium2/C# to run automated tests of a web app. I need to test the HTTP requests ...
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.
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 ...
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
4answers
2k views

absolute Xpath is not working for Gmail login page

I have tested the Gmail login page and was trying to verify the Sign in label in the Gmail login page above the user name field. I am using FirePath to generate the Xpath. When I inspect the element ...
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, ...
1
vote
1answer
2k views

Click() command in Webdriver API not working

I have tested a scenario where I have to enter user credentials and click on login button using Selenium2 (version selenium2.19-standalone.jar) ...
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, ...
2
votes
1answer
273 views

Har File Monitoring

I'm looking to automate some testing of calls we make to an external service. I've gotten Browsermob-proxy and selenium to play together nicely. I'd now like to monitor the requests as they occur, ...
5
votes
4answers
14k views

What is Selenium's default timeout for page loading?

I am using Selenium 2. I have loaded the page using Get command in WebDriver class which is in the package org.openqa.selenium. My question is that what is Selenium's default timeout for page loading? ...
2
votes
1answer
372 views

Is the source code required when using Selenium-RC with Grails?

Can anyone help with using Selenium-RC + Grails? I have used Selenium with Java but had no problem writing the code and launching the browser. But is the source code of my project required when i need ...
0
votes
1answer
904 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
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 ...
7
votes
4answers
194 views

Where does Automation creation happen w/in the Development Cycle?

I’m a Software QA Engineer at a small web development company and I need help wrapping my brain around implementing a new process. As of recently, my shop only handled ‘one-offs’. We would work on ...
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 ...
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 ...
6
votes
4answers
3k views

What are recommended scenarios to use Selenium Tests for?

My company is introducing BDD into our projects. Our customers have differents processes-cases wich also may fork at specific points. It is a mostly long and tedious work to test each case and each ...
1
vote
1answer
194 views

Clarification sought on the bindings for Selenium 2 and their interaction if any with Selenium Server standalone JAR

While going through the current download list for Selenium I came across this text The Java bindings for Selenium 2, including the WebDriver API and the Selenium RC clients. Download this if you ...
4
votes
5answers
6k views

Selenium 2 element.click() is unreliable

I am using Selenium 2 2.16 build. I've been running into problems where I get a variable response to a click() call, where sometimes the click activates the behaviour behind the element (new page ...
4
votes
2answers
682 views

How to fix 'Access is denied' errors when trying to .quit() Chrome in Selenium WebDriver tests?

Anyone know how to fix intermittent 'Access is denied' errors when trying to .quit() Chrome in Selenium WebDriver tests? It's happening about 1 in 10 times. Here's the traceback: Traceback (most ...
4
votes
3answers
1k views

Selenium Web-driver tests failing in Test-Controller machine when its not viewed

I am facing a strange problem with my selenium webdriver qa automation project. FindElementByXPath(element); seems to work fine when running it in my local machine but then does not work when i try ...
3
votes
1answer
2k views

How to get XPath of a list element generated by AJAX?

When I type a keyword ("Documents 1.xml") driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml"); in this field: <input id="documentSelect_enter" type="text" ...
3
votes
4answers
8k 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 ...
3
votes
1answer
2k views

Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?

elements.send_keys() works fine in most cases, but I have a particular test case where I need to input very large strings into a textbox, and send_keys() is far too slow. (The test takes 28 minutes to ...
4
votes
1answer
293 views

Selenium tests aren´t launched anymore

I used to be able to launch all my Selenium2 WebDriver tests in Ruby on Rails via rake test:units. But recently, my test case(s) won't be found anymore. I dont get any notification or error message. ...
21
votes
9answers
36k views

How to download a file using Selenium's WebDriver?

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = ...
1
vote
1answer
521 views

Some Selenium tests fail on server but pass locally

i'd like to know if anyone faced the following problem with Selenium tests run: when scripts are running locally all tests pass, but when they are ran on server for the same site some of tests fail ...
3
votes
1answer
2k views

WebDriver function failing intermittently in Internet Explorer near clear() method

Does anyone know why this WebDriver function would be failing intermittently in Internet Explorer? Seems to always fail right around the textbox.clear() line. It works perfectly in Firefox, but fails ...
5
votes
1answer
1k views

How to Debug Selenium WebDriver Actions?

I am using Selenium WebDriver and run into a issue. In the UI, elements are seen by the WebDriver but couldn't perform any actions such as click, type, select etc. Elements are findby the selenium ...
4
votes
3answers
9k views

Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException

See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it ...
3
votes
4answers
6k 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 ...
6
votes
3answers
12k views

Selenium: reuse existing browser session, instead of opening new windows?

This has been asked a million times on the web, but there's no clear cut answer. I tried "-browserSessionReuse" today without any luck; my tests keep spawning new browser windows. ...
11
votes
8answers
9k views

Problem with IE9 security certificate when accessing HTTPS URLs using Selenium 2 WebDriver

I have some Selenium 2 WebDriver test cases for Firefox and Internet Explorer 9. When I access HTTPS URLs on IE9 (Windows 7 64bit) I get: There is a problem with this website's security ...
2
votes
2answers
469 views

Webdriver line by line runinfo in eclipse console

I use a test setup with Webdriver and TestNG in Eclipse using java client. Earlier when i was using Selenium 1 in this same setup, it was giving a very descriptive line by line run-info which made ...
3
votes
2answers
923 views

WebDriver exception

I am using Fitnesse in order to define some selenium tests. We got all of them running under CHROME but under FIREFOX some exceptions are arising. For running the tests I am using the external chrome ...
3
votes
1answer
1k views

Selenium2 Selecting an item, that apperas on a page occasionally

I am a Software tester who has a very basic knowledge of java and Selenium2. I am trying to write a Junit Selenium2 test to click on an item if it appears on the page.(The majority of the time this ...