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.
0
votes
0answers
241 views
Custom error testing: How to find status code after page load/button click? [closed]
How to find status code after page load or button click for custom error testing?
After button click the page crashes. I want to check status code.
2
votes
1answer
847 views
How to instantiate a .NET FirefoxDriver when FF is installed in non-default location?
My Firefox 5 is installed not at the default location. So, I tried with the following to create a FirefoxDriver:
private IWebDriver driver;
[SetUp]
public void SetupTest()
{
var ffBinary = new ...
0
votes
1answer
717 views
How to retrieve INT value from TEXT box using Selenium/Webdriver Python binding?
Hi guys. I have this code
tcost = driver.find_element_by_id("MainContent_txtTotalCost").text
total = int(tcost)
driver.find_element_by_id("MainContent_txtVisa").send_keys(total/2)
...
0
votes
1answer
162 views
How to assert values on a page opened by a link on another page?
A link on page 1 opens a new page "receipt page". It contains only text values. I need to assert or verify values on the receipt page to ensure that this is the correct receipt.
After executing the ...
5
votes
2answers
235 views
Testing native application of Android and iOS
I am searching for an open source automation tool for all mobile platforms (Android, iOS).I have experience in using Selenium in all supported desktop browsers. I would like to know whether the ...
1
vote
2answers
993 views
WebDriverWait or ImplicitlyWait or ExplictlyWait nothing works
I'm using Selenium 2 tests (written in C#) that choose values from a "select" control. Selection causes a post-back to the server, which updates the state of the page. I am therefore performing a ...
0
votes
5answers
154 views
Select a certain item by clicking a link beside that item
I have a popup with list of names. I need to choose "mahmoud" for instance by clicking the "select" link beside the label "mahmoud". How to click that select? I am using selenium webdriver with ...
3
votes
2answers
765 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 ...
2
votes
4answers
4k 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
338 views
What are the advantages of web driver over selenium RC?
Please provide answers in detail, So that we could clarify that which one is to choose, Web driver or Selenium RC.
1
vote
1answer
93 views
More official way to leave browser window open upon failure?
My coworker Chris came up with this, and it works, but I wonder if there's a more "official" way to do this using unittest.TestCase in Python.
def tearDown(self):
""" clean up by closing the ...
3
votes
1answer
277 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, ...
0
votes
1answer
586 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 ...
2
votes
3answers
3k 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 ...
2
votes
3answers
3k 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 ...
1
vote
1answer
118 views
Is there a way to shorten the time Selenium2/Webdriver takes to look for an element when a failure is expected?
Selenium2/WebDriver is optimized for positive testing paths. My web application hides elements based on user permissions. I am looking for an element and throwing-catching the exception when it does ...
15
votes
9answers
3k 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 ...
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 ...
2
votes
3answers
701 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 ...
1
vote
2answers
209 views
Conditional statement for fail and error test outcomes in Selenium?
Say I have this function:
def tearDown(self):
""" clean up by closing the browser window """
self.driver.quit()
I want to skip closing the browser if the test failed or errored out (so ...
2
votes
3answers
537 views
How to fix intermittent typing problems with send_keys?
See attached. Once in awhile (say, one in several hundred test runs), I'll have something like this happen:
What it should have typed was AttachmentCount:0.
Another example where it is retyping ...
10
votes
3answers
5k 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?
1
vote
1answer
192 views
How to Spy elements in an in-browser applet
I am trying to automate user interaction on a web application which is having embedded java applet in it. Need a tool that can spy the objects in the java applet in browser .
The plan is to use FEST ...
11
votes
3answers
570 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 ...
2
votes
2answers
203 views
Does anyone have any suggestions for a Selenium with Ruby tutorials?
I have gone through this book http://www.compendiumdev.co.uk/selenium/ which is excellent and I highly recommend it to everyone! I was wondering if there is a similar book/tutorial with a Ruby focus ...
1
vote
0answers
140 views
Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency
I have a class with dependent methods using the TestNG annotation
dependsOnMethods
The test runs fine 100% of the time if I simply run it as a TestNG Test from the package.
When I include the test ...
1
vote
3answers
2k 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 ...
1
vote
3answers
243 views
Should Selenium 2 WebDriver tests of CRUD operations be self-contained and independent?
I am currently writing Selenium 2 WebDriver tests for an ASP.NET MVC 2 website (the tests are written in C# and run with NUnit as the testrunner). I'm familiar with unit testing (and have written ...
1
vote
2answers
333 views
Is there any way to convert existing QTP script in to selenium?
Is there any way to convert existing QTP script in to selenium? if yes then how ? is there any converter to convert or recreation of script is only possible solution for tha?
0
votes
1answer
401 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 ...
3
votes
1answer
1k 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 ...
4
votes
1answer
144 views
Read requests and responses made by browser on naviagating a web page in C# webdriver
0 down vote favorite
share [g+] share [fb] share [tw]
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 ...
0
votes
3answers
2k 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 ...
4
votes
2answers
1k 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
2answers
327 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
1k 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
245 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
1answer
2k 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 ...
4
votes
2answers
220 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
646 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
1k 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 ...
0
votes
3answers
6k 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, ...
5
votes
4answers
4k 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
5k 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
7k 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
287 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
171 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, ...
3
votes
2answers
456 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: ...

