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
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 ...
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
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 ...
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 ...
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
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
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", ...
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 ...
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?
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
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
303 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
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 ...
3
votes
3answers
685 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
2answers
368 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
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.
...
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 ...
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 ...
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
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 ...
1
vote
2answers
992 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
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 ...
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
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
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.
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, ...
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
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 ...
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 ...
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 ...
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
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 {
...
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 ...
2
votes
3answers
536 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
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 = ...
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?
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
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(), ...
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 ...
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 ...
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 = ...
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
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.