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

1
vote
1answer
307 views

Selenium RC: Xpath of the link is changed when i refresh the page

Selenium RC: Xpath of the link is changed when I refresh the page, and when I run the code it shows "Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Element ...
2
votes
2answers
449 views

Should Selenium Automation Testers possess knowledge on Database concepts and to write queries in the script?

I am newbie to Test Automation.Currently I got an oppurtunity to work with selenium Web driver.I just want to know whether I need to learn Database like MYSQL,OR ORACLE to work with selenium. Also I ...
2
votes
1answer
816 views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
0
votes
0answers
130 views

Cucumber, Rspec, Test-Unit & mini-test Pro Con for interfacing with rake and Selenium Webdriver

I'm in the market for a new test framework. I currently test-unit but I seems like there is some incompatibility between Test-unit , Selenium-webdriver, and modern versions of Firefox. I have had to ...
0
votes
1answer
269 views

Xpath to get the CSS property “background image” of DIV

What would be the Xpath to get the background-image CSS Property of a DIV tag whose ID is mentioned in Selenium Webdriver? Example: <div id="abc", style="width: 538px !important; height: 242px ...
0
votes
1answer
113 views

How to perform Selenium navigation before tests run without using JUnit 4.11+'s setUp or at the start of the test method?

How to perform Selenium navigation before tests run without using JUnit 4.11+'s setUp or at the start of the test method? We've got both navigation and bookmark based Selenium tests. The test code ...
1
vote
5answers
1k 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
142 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar , phpUnit, selenium extension for phpUnit. This test run ok $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
4
votes
3answers
320 views

How do I simulate a right click using Selenium 2 and PHPUnit?

I am trying to execute a functional test using Selenium 2 and PHPUnit. In the class 'Selenium2TestCase.php', I found this code: class PHPUnit_Extensions_Selenium2TestCase_SessionCommand_Click ...
2
votes
1answer
203 views

Selenium 2 opens Google Chrome but doesn't load webpages

When I execute a test calling google chrome (*googlechrome), Selenium Wedriver opens a browser and starts to launch the test cases but it doesn't load anything. I had the same problem with Firefox and ...
1
vote
1answer
289 views

Effective web driver management in Selenium2 + Grid2 + NUnit tests in C# for multiple browsers

I've been struggling with this for a while. We plan to move to a continuous integration server soon (probably TFS or Jenkins). I'm having a hard time figuring out how to efficiently manage the ...
1
vote
1answer
2k views

How to send down arrow keys for a drop down?

selenium.getDriver().findElement(By.id("s2id_customFilter")).sendKeys(Keys.ARROW_DOWN); Am using the above code but it's not working."s2id_customFilter" is the id of the drop down.Am clicking on the ...
1
vote
2answers
743 views

How to configure HtmlUnit Driver

I clearly missed a step trying to get HtmlUnit driver working with my app. I am getting the following exception. OpenQA.Selenium.WebDriverException was unhandled HResult=-2146233088 ...
0
votes
3answers
328 views

How to include passed assertions in the Test NG test result report?

I use Selenium webdriver 2 with Test-NG. Test-NG gives a nice report when an assertion fails. The customer wishes to see the same report in the case where an assertion passes. Is it possible to do ...
2
votes
1answer
628 views

Does Selenium's LoadableComponent make sense in a SPA (Single Page Application)?

I'm writing a UI testing suite for a single page javascript application using Selenium 2 web driver. I'm still experimenting with how to fit the app inside a page object model. At the moment I am ...
2
votes
1answer
3k views

Selenium WebDriver | Unable to switch to apparent pop-up

I am trying to automate Peoplesoft 9 based Web application on Firefox 20.0.1. On clicking a search icon another form opens which I thought to be a pop-up and tried my code - ...
3
votes
1answer
874 views

What is the difference between Geb automation tool and Selenium web driver?

I just want to know why it is I should go for Geb automation. What are the advantages of using Geb automation over selenium Web driver or Robot framework. I would like to know regarding following ...
2
votes
1answer
2k views

Selenium Webdriver | Unable to locate element error

I am trying to run the below code but getting error. Can you please point out the issue? import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import ...
1
vote
1answer
798 views

Is Selenium 2 WebDriver JavaDoc API available offline?

Can I get a offline copy/archive of Selenium Webdriver Javadoc API which is available here so that I can bind the same to my Eclipse IDE for offline use? A ready-made HTML archive will be ...
2
votes
1answer
216 views

Fitnesse + WebDriver: any working solution?

Could you please tell me if there were any attempts to integrate Fitnesse and Selenium WebDriver? I'm looking for something like Selenesse (https://github.com/marisaseal/selenesse), but for WebDriver, ...
3
votes
2answers
254 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 ...
2
votes
1answer
828 views

Unable to launch Chrome in remote webdriver

I have tried the following three options . I am using C# DesiredCapabilities capabilities = DesiredCapabilities.Chrome(); capabilities.SetCapability("chrome.binary", ...
1
vote
2answers
635 views

How to know if a checkbox is selected when using robot framework

I am using robot framework. How can I test if a checkbox is selected? I want to run a keyword if a checkbox is selected like: ${checked} = Checkbox Should Not Be Selected ...
2
votes
4answers
2k views

Is it possible to stop page loading on the browser using selenium web-driver?

I searched online, but couldn't find anything about how to stop page loading over a browser using selenium web-driver. Any idea for the same?
1
vote
4answers
237 views

Testing Server/Workstation Hardware specs recommendations?

I wanted to reach out and get some opinions of Testing hardware. Should I use VMs or a stand-alone tower? If I use VMs, what would be some recommended hardware specs for the hosting server? If a ...
2
votes
2answers
2k views

Failed to start new browser session: Error while launching browser + selenium + robotframework

I'm using robotframework+seleniumlibrary and I often got the following error when I launch test cases Failed to start new browser session: Error while launching browser I'm connected by "ssh -X ...
1
vote
1answer
2k views

Selenium - page load timeout

Is it possible to set timeout for page load in Selenium test? I have a problem, when sometimes test execution freezes on page load (application doesn't load new page, test hangs up), so test needs to ...
1
vote
0answers
186 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and i am unable to proceed. But I am able to do it manually. Now to proceed with ...
4
votes
3answers
6k 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 ...
0
votes
4answers
879 views

How to close pop up window in Selenium webdriver?

Below is my Selenium Webdriver script. When I run this script my website is opened but the popup window is also opened. How do I close this popup window so the script can continue? Take a look on ...
0
votes
1answer
220 views

check for value if found before adding it to my drop down list?

i have a drop down list that i add items to it,i ask the user to type in brand name and check first if that brand is already found on the drop down list if yes prints a message if no do some actions. ...
2
votes
1answer
460 views

WebDriver Ruby binding: How to specify Firefox binary path in code?

I'm writing my test cases in Windows7 with Ruby (v1.9.3-p194). Please, note that I want to specify Firefox binary path when using RemoteWebDriver, not FirefoxDriver. Here is the command line I used ...
0
votes
0answers
484 views

TestNG IRetryAnalyzer not working

I am using TestNG IRetryAnalyser, I am facing following issues When I implement the listener and override retry () method getting following: Listener ...
5
votes
2answers
831 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
1answer
1k views

How to capture the errors handling in Selenium WebDriver

i have created a framework where all the WebDriver API resides and in other project I am just calling those test cases I have created but the problem is that if anything goes wrong in the test case I ...
1
vote
2answers
3k 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
1answer
334 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 ...
0
votes
1answer
2k 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
5answers
329 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
1answer
751 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.
5
votes
1answer
690 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, ...
3
votes
1answer
431 views

Parameterized JUnit tests with HtmlUnitDriver leading to test termination

I came across an unusual issue with my automation tests while using the HtmlUnitDriver. I have been using the junit parameterized class to iterate over a list of urls to run some of my tests. The test ...
1
vote
1answer
156 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 ...
1
vote
1answer
114 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 ...
1
vote
2answers
363 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 ...
1
vote
1answer
798 views

JUnit Framework - Selenium Webdriver - Excel Input Output - Apache POI

I would like to know, do we use Apache POI when interacting with Excel Files for Selenium Webdriver (under JUnit framework) or is there any better approach? Let me know if further clarity is ...
1
vote
1answer
2k views

Click event in Selenium webdriver is not working [closed]

I tried everything: click, send, etc. Below is my code: WebElement element = ((WrapsDriver) selenium) .getWrappedDriver().findElement(By.xpath(LOGOUT_XPATH)); element.sendKeys(Keys.ENTER); try { ...
1
vote
1answer
397 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 ...
2
votes
3answers
1k 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 ...
2
votes
2answers
427 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 ...