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

12
votes
3answers
8k views

Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.) If not, what alternatives are there?
13
votes
4answers
705 views

Where can I find information on getting started with Selenium 2

Some background. I am a long time WatiN coder, and have been since I first looked a Selenium a few versions ago, and decided that it didn't meet my needs, then went with WatiN. I now want to switch ...
21
votes
9answers
35k 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 = ...
11
votes
5answers
12k views

How do you wait for jQuery Ajax calls to complete in Selenium 2

I use Selenium 2 in C# to automate testing of our web sites. When building non-Ajax functionality, using webDriver.FindElement(By.Id("element-id")) to find elements on a page works fine, but when ...
4
votes
3answers
5k views

How do I handle the login modal dialog created by onLoad in a WebDriver & Java based test automation

I am working on the test automation that uses WebDriver (Selenium 2) and Java. The AUT is web-based application. A modal dialog pops up that requires user authentication before the user can access ...
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
948 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 ...
4
votes
2answers
334 views

match image with Selenium2

Not sure if I'm even asking this question correctly, however, here goes. I'm looking at validating images in an automation suite that I just started. I am currently validating the location via XPath ...
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 ...
3
votes
1answer
2k views

Testing drag-and-drop with Selenium 2 on Telerik controls

I need to automate drag and drop functionality with Telerik controls, I currently use WatiN for my automation (see related quesiton Testing drag-and-drop with Watin on Telerik controls . I am ...
2
votes
1answer
188 views

How to navigate to a alert using Selenium Web Driver with Java?

I am trying to navigate the command on the alert box, but I am not able to do it in Web Driver with JAVA. Please help me with it. Apart from this I would also like to know how to tackle with the ...
1
vote
4answers
1k views

How to write test cases in selenium webdriver using C#, simultaneously when web application is being developed (application pages not available)

I want to write test cases when application is under developing. I know the design of the application based on the wireframes. I intend to write test cases in C# using the Selenuim WebDriver. ...
1
vote
5answers
3k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to ...
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 ...
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 ...