WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Rather than running as a JavaScript application within the browser (with the limitations this brings, such as the "same origin" ...
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
1answer
301 views
What is the max number of threads allowed for running TestNG tests in parallel?
I’m trying to run TestNG tests in parallel, right now I’ve set “parallel=tests” & ‘thread-count=25’ but I see that only 10 threads are running at a time. Is this testNG’s thread limit? Is there ...
0
votes
1answer
752 views
Unable to add Safari developer certificate in safari
Enviornment: Maz OSX
browser : safari
wedriver: 2.24.1
Created safari extension and safari developer certificate from apple developer site.
tried adding the certificate in safari keychain login .
As ...
2
votes
4answers
1k views
Click submenu which is dynamicly visible in Selenium WebDriver
In my scenario, I need to click the submenu that's only visible when its parent menu is in 'mouse over' status:
MainMenu (button)
SubMenu of MainMenu (span)
SubMenu of SubMenu of MainMenu ...
3
votes
1answer
1k views
Quicker way to assert that an element does not exist
The goal of my test is to assert that a popup does not appear after certain actions.
Previously to test if the popup exist, i have used exception handling.
try:
...
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 ...
3
votes
3answers
200 views
Rule of thumb for using wait()
A rule of thumb for using wait() would be before navigating to a different page. For Ex :
WebDriverWait(driver,10).until(lambda driver: driver.title.startswith("Submitted!!"))
What would be other ...
0
votes
0answers
268 views
Chrome driver not working in linux
i have followed following steps in the following link
[http://selftechy.com/2011/08/17/running-selenium-tests-with-chromedriver-on-linux][1]
unable to run tests on chrome browser in linux
getting ...
6
votes
2answers
7k views
WebDriver: find elements by text
I know that WebDriver can locate links through their text, using find_element_by_link_text or find_element_by_partial_link_text.
Is it possible to locate any element (such as li, div, span, ...) by ...
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 ...
1
vote
1answer
736 views
Iterating through a table : Avoiding stale element exceptions (Webdriver - Python)
Here is an interesting problem (or at least i think so)
As an Admin I have a table with N entries (51 to give a number). Each entry in a row is a recruiter name with a link to 'Login' as that person.
...
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 ...
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 ...
1
vote
2answers
2k views
How to specify a Firefox profile name when using webdriver + python
I'm using python 2.7.1 and selenium 2.20.0.
I have a seperate firefox profile called "selenium" which I want to use when running the webdriver.
I managed to do it by specifying the complete path to ...
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
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.
...
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 ...
3
votes
3answers
224 views
Going past the Chrome security warning
I'm trying to test a page without a security certificate, which Chrome flags up. This blocks my tests. (I have to manually click "Proceed anyway". Is there a way to disable this warning?
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: ...
3
votes
2answers
2k views
Drag-and-drop failing on complex jQuery UI
Using the Python bindings of Selenium Webdriver, I cannot get drag-and-drop working on a "complex" jQuery UI example with ActionChains.drag_and_drop(). (It does work on a simple example.)
My testing ...
4
votes
2answers
421 views
What's the best approach to asserting values with automation testing test cases from complex business logic?
Suppose you have automation tests (my example uses Selenium) to assert complex business logic for a web site. What is the best way to assert that thousands of different test cases are outputting the ...
-1
votes
3answers
400 views
Launching WebDriver from a servlet.java throws exception
I prepare a web interface that I could launch the WebDriver. I used servlet.java. I'm using JBoss application server, when I try to run it I receive the following exception
13:39:40,779 ERROR ...
2
votes
1answer
392 views
Is there a way to disable a JavaScript function of the tested application from Selenium WebDriver automation project?
I need to disable a particular JavaScript function of the main application for which I am creating automated tests using Selenium WebDriver.
Is there a way to do this?
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
1answer
874 views
Send keys to no element in particular
The way I know of sending keys using the WebDriver Python bindings is as follows:
element.send_keys(value)
How can I send a key (specifically the Escape key) to no element in particular, just to ...
1
vote
1answer
1k views
Can't open webpage using Firefox WebDriver using Selenium [duplicate]
Possible Duplicate:
I face a problem while opening Firefox with Selenium script
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class ok {
...
3
votes
1answer
922 views
Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
elements.send_keys() works fine in most cases, but I have a particular test case where I need to input very large strings into a textbox, and send_keys() is far too slow. (The test takes 28 minutes to ...
6
votes
1answer
2k views
Is there any full Python webdriver API documentation?
I'm starting out using Selenium 2/Webdriver, been using Selenium IDE for a few weeks, to automate some tests and decided to go with Python. I've been writing some simple tests using some basic ...
3
votes
1answer
693 views
How to Debug Selenium WebDriver Actions?
I am using Selenium WebDriver and run into a issue.
In the UI, elements are seen by the WebDriver but couldn't perform any actions such as click, type, select etc. Elements are findby the selenium ...
3
votes
3answers
6k views
Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it ...
2
votes
1answer
6k views
How do I close the browser window at the end of a Selenium test?
I have googled for the answer, but the ".stop()" so frequently mentioned doesn't work for me. The Chrome window the test was running in remains open.
def test_getResults(self):
sel = ...
3
votes
2answers
876 views
Selenium 2.0 Webdriver file structure for automation testing
My team uses Selenium 2.0/webdriver to test our enterprise web app. We've been learning and playing with webdriver commands for a while. Each team member has their own style to keep their script ...
2
votes
1answer
2k views
What is a good way to refresh page elements when using WebDriver .Net with IE 8?
I'm automating a part of the User Profile UI we have using WebDriver Selenium 2, I'm coding in Visual Studio so I am using the .Net version as I am more comfortable in C#, and I am testing this with ...
3
votes
1answer
3k views
How should I organize a TestNG suite for Selenium 2 WebDriver tests that use page objects?
I'm trying to organize a functional test suite for the UI in a CRUD web application using TestNG-style Selenium 2/WebDriver tests. I've isolated page-interaction logic into distinct page objects, and ...
3
votes
3answers
1k views
Any one have experience with frameworks using webdriver in Visual Studio?
I'm using webdriver to automate our browser testing, I have some scripted tests already where I am using Visual Studio and while I don't mind other formats I'm looking for a good supportable framework ...
8
votes
1answer
647 views
Why should I move to Selenium 2 from Selenium 1?
What are the real benefits of using Selenium 2 instead of Selenium 1? I've read several posts related to new version but didn't get what are the advantages of Selenium 2.
3
votes
2answers
1k views
WebDriver login and click action ain't working…
I have the following problem.
I have a website where the Login is Via a Link that has the href: SubmitLogin().
I'm trying to use webdriver in the form of PageFactories.
I have this method:
...
4
votes
2answers
4k views
How do I handle the login modal dialog created by onLoad in a WebDriver & Java based test automation
I am working on the test automation that uses WebDriver (Selenium 2) and Java. The AUT is web-based application. A modal dialog pops up that requires user authentication before the user can access ...
6
votes
1answer
452 views
Firefox (3.6) not loading Flash when running Selenium2 tests
I've seen several mentions of an issue when running tests in Firefox: the Flash player doesn't load the SWF if the browser window doesn't have focus. This causes sporadic test failures if the system ...