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.
2
votes
3answers
2k views
Selenium 2 element.click() is unreliable
I am using Selenium 2 2.16 build. I've been running into problems where I get a variable response to a click() call, where sometimes the click activates the behaviour behind the element (new page ...
4
votes
2answers
569 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 ...
9
votes
7answers
5k 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 ...
2
votes
1answer
55 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 -
...
2
votes
1answer
34 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 ...
1
vote
1answer
186 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", ...
3
votes
1answer
639 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 ...
2
votes
1answer
740 views
IE always opens with random local host and msg:"This is the initial start page for the WebDriver server
i have my webdriver tests running parallel in IE, chrome and firefox, when i run test in IE browser it node gets registered with the hub, and the browser opens and it gets redirected to some random ...
2
votes
1answer
86 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 ...
3
votes
3answers
686 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 ...
2
votes
1answer
859 views
How to get XPath of a list element generated by AJAX?
When I type a keyword ("Documents 1.xml")
driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml");
in this field:
<input id="documentSelect_enter" type="text" ...
5
votes
1answer
2k views
“java.lang.NoClassDefFoundError” Error when running Selenium RC script
First of all I have recorded the script in Selenium IDE, then exported into the junit4 (RC), then copied the junit4 (RC) code into Eclipse IDE. When I run the project with junit test, I found the ...
3
votes
2answers
100 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 ...
1
vote
1answer
271 views
Is the source code required when using Selenium-RC with Grails?
Can anyone help with using Selenium-RC + Grails? I have used Selenium with Java but had no problem writing the code and launching the browser. But is the source code of my project required when i need ...
1
vote
1answer
256 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
2answers
1k views
Selenium 2.0 WebDriver: Clearing Session Data
Is there a way to clear out session data for a driver instance in WebDriver? My code is written in C# (and NUnit), but I'm not picky on the language for the answer.
1
vote
1answer
250 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
75 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 ...
3
votes
1answer
247 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. ...
3
votes
3answers
556 views
Handling popup with many buttons using Selenium webdriver
I'm using Selenium web driver with Java language. When there are two buttons in a popup i.e. ok and cancel , it can be easily handled with web driver using the following code:
Alert alert = ...
0
votes
2answers
61 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 ...
1
vote
1answer
67 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 ...
0
votes
1answer
292 views
Advance commands of Selenium are not working in IE browser
I am using the SeleniumBackedWebdriver API in my current project, which supports both Selenium RC and WebDriver APIs. The Advanced User Interactions API like mouseUp(), mouseDown(), runScript() are ...
1
vote
0answers
37 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
3answers
6k 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?
...
1
vote
1answer
271 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?
4
votes
4answers
1k 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 ...
1
vote
1answer
349 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 ...
9
votes
5answers
13k views
How do I 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 = ...
2
votes
1answer
259 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 ...
1
vote
1answer
304 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 ...
0
votes
3answers
1k views
absolute Xpath is not working for Gmail login page
I have tested the Gmail login page and was trying to verify the Sign in label in the Gmail login page above the user name field. I am using FirePath to generate the Xpath. When I inspect the element ...
0
votes
3answers
396 views
How to automate the action on a canvas object, when the canvas element has no name or ID in Selenium?
I want to automate the testing for a digital signature, which is a canvas element...Can anyone provide me with sample code, which could be used...I have tried, selenium.clickAt(), ...
1
vote
5answers
4k views
How to start a Selenium2 WebDriver window in background?
I have a series of Selenium2 test cases in C#/NUnit that are run sequentially. Each test case runs in a new instance of the WebDriver (and this is necessary) - which means that each time a new test ...
0
votes
2answers
369 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 ...
3
votes
4answers
172 views
Load testing for free or cheap without having to setup Selenium Grid?
One of these days I need to setup Grid, but I don't have much time lately. My need is pretty simple: run concurrent find operations to load test our search service. I know there are things like ...
1
vote
2answers
1k views
"Element is no longer attached to the DOM” StaleElementReferenceException when selecting HTML table row
I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I ...
1
vote
0answers
73 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 ...
1
vote
3answers
10k views
How to configure selenium Web driver into Eclipse
I want to Integrate the selenium Web driver test into eclipse, but i am really stuck at this point. Can any one help me at this point.
1
vote
1answer
548 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
2answers
1k views
How can I access a site protected with basic HTTP authentication using Python, Selenium2, and Chrome Webdriver
I'm using the Python bindings for Selenium2 with the Chrome webdriver. I need to access a site that is protected with basic HTTP authentication.
from selenium import webdriver
driver = ...
3
votes
2answers
3k views
Solving “SeleneseTestCase is deprecated” issue
I'm working through the "Selenium Simplified" book just to really gain a solid understanding of Selenium and Java. I know the basics of Java, but this one is frustrating me. I must be missing some ...
0
votes
1answer
146 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.
...
4
votes
2answers
349 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 ...
0
votes
0answers
172 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 ...
3
votes
2answers
2k views
Alternative for user extensions in Selenium 2 WebDriver w/ jQuery?
I've been switching over our company's automation scripts from Selenium IDE to Selenium 2.0 WebDriver. The problem is that we have a crap load of user extension custom commands because of all the ...
3
votes
3answers
5k 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, ...
1
vote
1answer
1k views
Click() command in Webdriver API not working
I have tested a scenario where I have to enter user credentials and click on login button using Selenium2 (version selenium2.19-standalone.jar)
...
7
votes
1answer
1k views
Extracting hidden text with Selenium
I'm trying to extract a certain message from my app.
The text starts up as visible and then changes to style= "visibility: hidden"
the visibility period is rather short, and I was wondering how can I ...
1
vote
1answer
1k 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 {
...
