Tagged Questions
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
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 ...
3
votes
3answers
687 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
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 ...
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 ...
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
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)
...
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
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 ...
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 ...
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 ...
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
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 ...
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.
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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
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, ...
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, ...
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 ...
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: ...
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 ...
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
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 ...
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.
...
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 ...
1
vote
1answer
178 views
Clarification sought on the bindings for Selenium 2 and their interaction if any with Selenium Server standalone JAR
While going through the current download list for Selenium I came across this text
The Java bindings for Selenium 2, including the WebDriver API and the Selenium RC clients. Download this if you ...
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 ...