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" ...
0
votes
2answers
637 views
FlexWebDriver does not work with YouTube under FireFox?
I want to make a script that plays all videos of YouTube channel and perform player settings and return status.
Execution of the following command does not create any error on java stacktrace but, ...
2
votes
2answers
493 views
Ctrl+Click using WebDriver
There is a similar question concerning Watir-WebDriver.
What is the best way to do Ctrl+click on a DOM element?
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.
...
3
votes
1answer
110 views
How to share my test scripts with other stakeholders?
I have written Java automation scripts using Selenium WebDriver in Eclipse.
I uploaded everything to GitHub.
Here my questions are:
How can my manager/colleague execute these scripts in his or her ...
1
vote
1answer
136 views
Error on command: service: “ecmascript”
I have sucessfully run locator commands in Firefox, Chrome and IE but I have an issue with Opera 12.02.
This code is the source of the issue:
...
0
votes
2answers
845 views
What's the relation between Selenium WebDriver and these other tools?
I've used Selenium IDE to test Drupal (PHP) sites but want to create more advanced tests with loops and such. I hear Selenium WebDriver is all the rage, but when I google it, all these terms pop up ...
3
votes
4answers
2k views
Downloading a file in Internet Explorer through Selenium
I have to automate a case in which I have to download an Excel file using Selenium IDE.I have done this in Firefox by using custom profile feature which automatically downloads file and saves it into ...
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
1answer
238 views
SafariDriver is not responding after opening a URL
I am trying to run safaridriver to automate google page as given in https://code.google.com/p/selenium/wiki/SafariDriver
But what I can find is driver open the url and loads the home page, but after ...
1
vote
2answers
159 views
Check-box remains checked up after test and impacts another tests
I have created a test case where I shall enter details for a deal to be scheduled for a future date and time. I have a pop up which is listing all existing deals having check boxes for selecting one ...
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, ...
0
votes
1answer
493 views
How to access sitemap tree child node navigation link using selenium webdriver [closed]
The website I am trying to automate can be navigated by using sitemap tree.Now in order to access the child nodes from selenium I wrote the following code:
IWebElement menu = ...
0
votes
1answer
128 views
Selenium RC is out dated or still in the market after selenium 2.5 release?
I am writing a training course for Selenium automation testing. I am a bit confused comparing Selenium RC to Selenium2/Webdriver, since the latest release of Selenium2/Webdriver has all of the ...
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.
2
votes
1answer
847 views
How to instantiate a .NET FirefoxDriver when FF is installed in non-default location?
My Firefox 5 is installed not at the default location. So, I tried with the following to create a FirefoxDriver:
private IWebDriver driver;
[SetUp]
public void SetupTest()
{
var ffBinary = new ...
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
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 ...
2
votes
2answers
579 views
Why does IE9 running WebDriver scripts gets out of focus if other applications are open?
I have automated tests running on IE9 on Windows 7 64 bit. The application under test is a simple webform with a 'Next' button on each page. When i run the automated tests on Firefox 12 they run in ...
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
137 views
Unable to locate element (Modal Dialogue Box)
I'm new to Webdriver. I need to automate a scenario on Mozilla,
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_27'
I have a scenario to create a user and ...
-3
votes
2answers
315 views
Outlook Mail testing
I want to know how to use outlook to test mails (the mail has a link that needs to be clicked to approve or deny the request). How do I write this in Selenium Webdriver in c#. I am quite new to ...
3
votes
2answers
765 views
WebDriver exception
I am using Fitnesse in order to define some selenium tests.
We got all of them running under CHROME but under FIREFOX some
exceptions are arising.
For running the tests I am using the external chrome ...
2
votes
4answers
4k views
Using Selenium Webdriver with Windows Authentication
I'm attempting to create some selenium tests for a website that requires windows authentication. I got my first test up and running fairly easily, but it pauses as soon as the system prompts for ...
3
votes
3answers
971 views
How can I switch to new window using webdriver?
I have clicked an image in a slide show and it generates a new window. Once the window opens I need to bring focus on new window and do some stuff. I have attached my code below, but it is not ...
3
votes
4answers
1k views
Running Selenium tests as a scheduled task
I'm trying to run a Selenium WebDriver script written in Python on a Windows 7 64-bit box as a scheduled task.
The test works pretty well when run as a batch file from the command prompt, but when ...
6
votes
4answers
11k views
What is the correct way to select an <option> using Selenium's Python WebDriver
I would like to select an <option> child of a <select> using the Python WebDriver.
I have a reference to the option WebElement I wish to select and have tried select() and click() methods ...
2
votes
1answer
346 views
How to indicate an ` ` in xpath?
Say we have the following HTML code. What I want is to locate to the label element whose text is 'AgendaShowCapacity (1 remaining)' with XPath.
<div id="pageContent">
<fieldset>
...
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, ...
2
votes
2answers
427 views
Verify text present in jquery dialog box
I need to verfiy the dialog box displayed on clicking a 'Save' button for below conditions.
Whether the dialog box is displayed?
Text present in the dialog box?
I have tried using all locators ...
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 ...
0
votes
2answers
2k views
Running WebDriver tests in parallel using testng.xml
I'm trying to run WebDriver tests in parallel using testng.xml. I'm able to run testng tests in parallel by using parameter parallel="tests" but running with following paramters, "methods", "classes" ...
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 ...
2
votes
3answers
3k views
WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?
There's a bug in the chromedriver.exe Chrome driver for Selenium's WebDriver API. You can't use send_keys for certain types of inputs, like for the jQuery plugin "EZPZ Hint". It works okay on simple ...
1
vote
0answers
111 views
Selenium Webdriver and OpenLayers
I would like to check that the locations asset on map (openLayer) are the same with some asset in a row. What is the best way to do this? I'm using the TestNG framework.
1
vote
1answer
1k views
Unable to upload a file using selenium/web driver running with java
I have a complicated interface where uploading a file is three step ( The forum is not allowing me to add screenshots of my window so please try to visualise it)
step 1 click on browse tab and select ...
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 ...
15
votes
9answers
3k views
Page Objects design issues
I have started using the Selenium 2 /Webdriver web automation framework a couple of weeks ago and I'm generally pleased, but I find myself unsure about how to best design my Page Objects. The ...
1
vote
0answers
234 views
Passing session while switching control to a pop-up window
I am trying to choose a date by clicking an image which results in a pop-up window with a date picker in it.But when done through selenium the session expires and the login page appears in the pop-up ...
8
votes
3answers
3k views
How do I start the Internet Explorer WebDriver for Selenium in Python?
I had a devil of a time figuring this out. It wasn't documented on the web anywhere I could find. I ended up reading the webdriver init.py to find out.
3
votes
1answer
1k views
Selenium2 Selecting an item, that apperas on a page occasionally
I am a Software tester who has a very basic knowledge of java and Selenium2.
I am trying to write a Junit Selenium2 test to click on an item if it appears on the page.(The majority of the time this ...
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 ...
2
votes
1answer
125 views
Why do I want to use Rake in Selenium Webdriver tests?
My question is why would I want to use rake, make, or ant in any of my automated tests. I specifically use Ruby with Selenium-Webdriver and I have thus far used test-unit to wrap my test cases to ...
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
491 views
Choosing framework type for selenium RC/Webdriver
I had opportunity to work in around 3 different projects, where selenium have been used extensively. Among them 2 were based on Data driven (say test cases driven by testng XML for each scenario with ...
3
votes
5answers
4k views
Load Testing, Selenium Vs Jmeter Vs other tools
I have been using Selenium/Webdriver for functional testing in a grid setup.
We are in the process of transitioning to a Solr based search service. I already have Solrmeter for load testing the ...
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 ...
10
votes
3answers
5k views
Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?
If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.)
If not, what alternatives are there?
3
votes
3answers
348 views
What is the best way to handle minor intermittent automation failures during cross browser testing?
I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
2
votes
4answers
2k views
I face a problem while opening Firefox with Selenium script
I face a problem while running Selenium scripts. I try to open Firefox using the following command:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public ...