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

2
votes
2answers
494 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 ...
6
votes
1answer
1k views

Unable to run standalone test script in Selenium with Python

So, I have the latest Selenium 2.0 Python bindings installed via pip (Python 2.7.2, Windows 7). I wrote a small script to see if I could get it working: from selenium import webdriver driver = ...
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
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 ...
4
votes
2answers
265 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
1answer
989 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
3k 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 ...
1
vote
3answers
12k 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, ...
6
votes
4answers
7k views

Which locator do you use with Selenium CSS or XPath?

I have heard that, when using Selenium, the CSS Locator has better performance than the XPath Locator. Which Locator do you use in your tests? Have you seen a great performance improvement when using ...
3
votes
3answers
11k 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. ...
11
votes
5answers
13k 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 ...
1
vote
1answer
569 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 ...
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 ...
2
votes
1answer
287 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, ...
7
votes
4answers
197 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 ...
1
vote
1answer
195 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 ...
6
votes
4answers
4k 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 ...
4
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
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
2answers
2k views

Selenium 2.0 Webdriver file structure for automation testing

My team uses Selenium 2.0/webdriver to test our enterprise web app. We've been learning and playing with webdriver commands for a while. Each team member has their own style to keep their script ...
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
5k views

What is a good way to refresh page elements when using WebDriver .Net with IE 8?

I'm automating a part of the User Profile UI we have using WebDriver Selenium 2, I'm coding in Visual Studio so I am using the .Net version as I am more comfortable in C#, and I am testing this with ...
3
votes
1answer
4k views

How should I organize a TestNG suite for Selenium 2 WebDriver tests that use page objects?

I'm trying to organize a functional test suite for the UI in a CRUD web application using TestNG-style Selenium 2/WebDriver tests. I've isolated page-interaction logic into distinct page objects, and ...
-1
votes
1answer
1k views

Open SSL / Https url using selenium-rc

Please suggest me, how to open the SSL urls using selenium-rc? I face trouble while opening any https website through selenium RC in IE and FF browser both, as they prompt for accept the SSL ...
3
votes
1answer
10k views

How to fix “Permission denied to access property 'document'”?

I posted it on stackoverflow.com. Someone suggested me to post it here... While trying to automate testing with selenium rc I ran into this problem. I was just following the steps in the tutorials. ...
4
votes
1answer
684 views

Selenium-2 Webdriver browser support

I have a question about selenium2 (webdriver). As selenium-2 supports following 4 types of web drivers.. 1-IE 2-firefox 3-chrome 4-htmlunit Is there any way to use any other webdriver apart ...
3
votes
1answer
2k views

What is the Java code to subclass HtmlUnitDriver to support http authentication?

Is it possible to subclass a Java object in the constructor? I am a Java newbie trying out Selenium example in a faq, ...
3
votes
2answers
1k views

WebDriver login and click action ain't working…

I have the following problem. I have a website where the Login is Via a Link that has the href: SubmitLogin(). I'm trying to use webdriver in the form of PageFactories. I have this method: ...
2
votes
2answers
2k views

switching windows with Selenium2 and c# where popup window has same title as originating window

I've been attempting to figure this out for the past two days, unfortunately with no luck. I'm currently automating a scenario where a new window for a form is popped up from the main application ...
2
votes
2answers
841 views

Selenium: Ajax Testing

Please brief me about the Ajax testing with selenium RC. As in Ajax element does not reflect on the view-source, but using firebug we can see the changes in HTML source code. There are two methods ...
4
votes
1answer
6k views

Selenium form input sendKeys doesn't always work under IE

We're trying to use Selenium 2.0b3 to verify behavior of a Java web site we've recently acquired from a third party. The site often uses AJAX to plop HTML replacements onto the page. Internet ...
4
votes
1answer
788 views

I Can't Shut Down My Selenium Instance (C# WebDriver, Gallio). I think I have a bug…

So, I have some code set up via Gallio, to start the selenium server before each test session, and shut it down when the session finishes (all tests have run). It starts the server fine, but I can't ...
4
votes
2answers
340 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 ...
6
votes
4answers
3k views

Selenium2 assert questions

I've recently started converting my automation suites from WatiN to Selenium2. In both cases, I've been using C#. Although these may seem like simple questions, I've been searching for answers for ...
6
votes
1answer
538 views

Firefox (3.6) not loading Flash when running Selenium2 tests

I've seen several mentions of an issue when running tests in Firefox: the Flash player doesn't load the SWF if the browser window doesn't have focus. This causes sporadic test failures if the system ...
6
votes
3answers
2k views

Attach to browser not spawned by Selenium2

One of the things that I miss about WatiN is the ability to attach to browser instances that were not spawned by Selenium. In my last position, this was the whole reason why I used WatiN, as the ...