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

25
votes
4answers
2k views

Are Selenium functional tests reliable enough to be worthwhile?

I'm finding that regardless of how solid my tests scripts are, I still have tests that fail (falsely), even though they worked just fine before. I'm not talking about if markup changes (although that ...
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 = ...
18
votes
10answers
5k views

Page Objects design issues

I have started using the Selenium 2 /Webdriver web automation framework a couple of weeks ago and I'm generally pleased, but I find myself unsure about how to best design my Page Objects. The ...
16
votes
4answers
28k views

What is the correct way to select an <option> using Selenium's Python WebDriver

I would like to select an <option> child of a <select> using the Python WebDriver. I have a reference to the option WebElement I wish to select and have tried select() and click() methods ...
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?
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 ...
10
votes
9answers
2k views

What is a good website to hack around using Selenium?

I want to learn Selenium, but I don't know what to code. Sure, I can throw Google some queries, I can fill out some forms, press buttons, find divs and links, etc. But I think this stuff is pretty ...
9
votes
8answers
14k 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 ...
8
votes
6answers
834 views

Is adding IDs to everything standard practice when using Selenium?

My team is using Selenium WebDriver and the QA team is having the developers add IDs to almost everything. Is that normal or is Selenium flexible enough that tests can be written with the markup that ...
8
votes
1answer
688 views

Why should I move to Selenium 2 from Selenium 1?

What are the real benefits of using Selenium 2 instead of Selenium 1? I've read several posts related to new version but didn't get what are the advantages of Selenium 2.
8
votes
3answers
7k views

How do I start the Internet Explorer WebDriver for Selenium in Python?

I had a devil of a time figuring this out. It wasn't documented on the web anywhere I could find. I ended up reading the webdriver init.py to find out.
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 ...
7
votes
1answer
3k views

Is there any full Python webdriver API documentation?

I'm starting out using Selenium 2/Webdriver, been using Selenium IDE for a few weeks, to automate some tests and decided to go with Python. I've been writing some simple tests using some basic ...
7
votes
2answers
1k views

What is the best way to have a SpecFlow project run across multiple browsers?

I'm working on setting up a SpecFlow project to test a portal. Thus far I've haven't had issues writing some "hello world" features and steps. My question is as the testing project grows, what is the ...
6
votes
5answers
2k views

Manual tester wanting to get into automation

So its been a year since I have been studying python, and just recently I started picking up webdriver. It was a long journey, and I am still pretty noob, but I finally understand how to use it lol. I ...
6
votes
3answers
913 views

Running tests in parallel using Jenkins Grid plugin

I have Jenkins 1.499 running Watir-Webdriver tests on a Windows 2008 (64bit) server alongside the Grid 2 standalone server (and Jenkins Selenium Grid plugin). I can run my tests through the ...
6
votes
1answer
533 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 ...
5
votes
3answers
105 views

Selenium/Webdriver with team member that don't have programing skills

We are planning on integrating/developping automation solution with Webdriver 2.0 for our web application. We currently have 2 members in the team that can write code, and understand enough Java to ...
5
votes
1answer
975 views

Automated tests pass every time when run individually, but when they are clumped into a test suite it's a toss up if the tests will pass

I have around 200 test classes for my web application at the moment. I use Selenium2/Webdriver and the tests are written in java, with TestNG used as my framework. When I run each test by itself, ...
5
votes
3answers
423 views

Best practices for developers to increase testability of web apps for QA?

I'm writing a document for a developer at my company who will be working on a web app. Here's the advice I have for him so far (below). Can any of you think of more that I can add? Not sure which tool ...
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 ...
5
votes
4answers
8k views

Webdriver Check if Checkbox is Set and Set it if Not

I am learning Webdriver with JUnit by going through Alan Richardson's Selenium Simplified book and taking translating the exercises/tests from Selenium RC to Webdriver. So far, this has proven to be ...
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 ...
5
votes
2answers
618 views

Using Selenium Opera Driver doesn't start my test execution

I am able to open the Opera browser using Selenium Opera driver. But I am unable to navigate to any URL using: driver.get("www.google.com"); Opera driver starts and doesn't load the given link. -- ...
4
votes
3answers
813 views

How to test facebook likes using webdriver without being flagged as a bot?

I've tried registering test accounts to test facebook likes on my site, but running tests repeatedly flags the accounts as spam. Facebook allows fake users for FB apps, but not external apps. Are ...
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, ...
4
votes
2answers
750 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 ...
4
votes
3answers
734 views

What is the best way to handle minor intermittent automation failures during cross browser testing?

I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
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
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 ...
4
votes
3answers
9k views

How can I switch to new window using webdriver?

I have clicked an image in a slide show and it generates a new window. Once the window opens I need to bring focus on new window and do some stuff. I have attached my code below, but it is not ...
4
votes
3answers
6k 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 ...
4
votes
1answer
262 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
3answers
3k views

Selenium Tests run in the background when TeamCity CI is run as a Windows service

Our test suite is written in Python and makes use of the WebDriver Python bindings. We are looking into moving to TeamCity for continuous integration. The setup I have in mind is a build triggered for ...
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 ...
4
votes
3answers
678 views

How to implement Page Objects Pattern for an utter dynamic page

Can any one throw some ideas for the best approach for implementation of page object in the below case? - The more the ideas the better - please do write what ever you think small or big dosent ...
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 ...
4
votes
1answer
2k 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 ...
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 ...
4
votes
1answer
487 views

OperaDriver is not navigating to desired URL

I have tried to open a URL using the OperaDriver. My issue is that I am getting browser launched but the desired page is not getting loaded. Below is the code. @BeforeClass public static void ...
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 ...
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 ...
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 ...
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. ...
4
votes
1answer
637 views

Getting nose test runner to execute a test against multiple browsers / configurations?

Surely someone else has run into this problem. I'm trying to figure out how to loop through Firefox, Chrome, and IE in conjunction with nose. Right now I have: "setup.cfg" file that specifies ...
3
votes
3answers
2k views

Any one have experience with frameworks using webdriver in Visual Studio?

I'm using webdriver to automate our browser testing, I have some scripted tests already where I am using Visual Studio and while I don't mind other formats I'm looking for a good supportable framework ...
3
votes
2answers
299 views

Is it a good idea to learn Selenium RC alongside Webdriver

I have recently started exploring Selenium. According to the experts future lies in Selenium Webdriver. But my question is being a predecessor should I also learn Selenium RC? Will it be worth ...
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 ...
3
votes
4answers
15k views

How do I close the browser window at the end of a Selenium test?

I have googled for the answer, but the ".stop()" so frequently mentioned doesn't work for me. The Chrome window the test was running in remains open. def test_getResults(self): sel = ...