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" ...

learn more… | top users | synonyms

1
vote
2answers
395 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
2answers
3k 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 = ...
1
vote
1answer
1k 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. ...
1
vote
1answer
42 views

Matching any text present on the visible html page

Suppose I have an add question facility but can't add same question in the form. So need to check whether the question is already visible on the screen, if not then add it. I am not getting how to ...
1
vote
2answers
93 views

What practices are used to avoid constantly testing the login screen in web driver tests?

Good tests shouldn't shouldn't have duplication and should be concise, however when testing a web application with authentication the test must first get past authentication to perform the desired ...
1
vote
1answer
75 views

Selenium WebDriver (Java) with database [closed]

I want to validate application output result with Database using selenium webdriver (Java). Please let me know how this can be achieved. Or could you please let me know how to use selenium webdriver ...
1
vote
1answer
171 views

selenium wget download file

I'm testing a web app with Selenium and I actually need to download a txt file during my test. But this seems impossible because a pop up appears asking to save the file. So, this blocks the progess ...
1
vote
2answers
58 views

Test results that differ from running via command line versus IDE

I have just run a set of automated tests via the command line using Maven as my build tool and JUnit4 as my test execution framework. There was a report of two errors which were recorded in a text ...
1
vote
1answer
226 views

How to find dynamically created elements in drop-down list based on input entered using Webdriver and c#?

I'm trying to test a page that has an input but really its a drop down list. The user enters text and then a dropdown appears based on what the user inputted. They are groups that are in the database. ...
1
vote
1answer
181 views

Is there a ChromeDriver available for Mac OS X 64 bit?

I using Mac OS X 10.8.5. I was using Firefox driver for testing. I would like to use chrome driver too. I searched and all i got is chromedriver for Mac-32 bit.
1
vote
2answers
714 views

How to set Firefox path on Mac OS for Selenium WebDriver?

I am beginner to webdriver. I have setup all configurations. I am using firefox 27.0.1 version with selenium jar files 2.40.0. I have written code to open firefox browser with a URL. I am unable to ...
1
vote
1answer
464 views

How to update test cases in MS Test Manager based on automated test script results

For a web-application, I am automating my test cases using selenium web driver in java. My test cases are being managed using Microsoft Test Manager. Now, I want to update the test cases in the ...
1
vote
1answer
3k views

How to compare values from the list or from dropdown list in webdriver (Java)?

Below is my code and html code, please let me know how to compare values. When i executed i am getting same result (Mateched) for multiple times. But i want to compare and display result as "Matched" ...
1
vote
2answers
76 views

Assertions and Outputting Specific URLs

Here's what I've done so far. @Test public void test() { String[] list = {}; for (int i=0; i<list.length; i++){ driver.get(baseUrl + "/" + list[i]); boolean ...
1
vote
1answer
236 views

Selenium 2 RemoteWebDriver constructor error: java.lang.String cannot be cast to java.util.Map

I am newbie with selenium and writing selenium test cases, I am basically trying to modify existing code in order to enhance some functionality. I am creating a webDriver using the following code : ...
1
vote
2answers
580 views

Can not catch NoSuchElementException with PageFactory (Selenium WebDriver)

My question is like Problem catching Selenium Webdriver NoSuchElementException but there is no answer to resolve an issue. Class SmallLoginLocators: public class SmallLoginLocators { public ...
1
vote
1answer
479 views

How to execute parallel junit tests with maven surefire

I'm using selenium webdriver, Junit 4.9, maven for testing. Now I need to parallel tests. I added the plugin below, then tried to run it from IntelliJ IDEA 11, but it was still running sequentially. ...
1
vote
1answer
225 views

Access the DOM of a PDF using WebDriver and FireFox's built-in PDF viewer

I'm trying to use FireFox's built-in javascript PDF viewer with WebDriver so I can access the DOM of a PDF. However, FireFox has an Adobe plugin which takes over and displays the PDF. Whatever ...
1
vote
1answer
1k views

How to handle child window in selenium webdriver?

In selenium webdriver, i can switch between from parent window to child window but i cant focus child window.it is not working. Anybody having suggestions to find the solution?
1
vote
2answers
225 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 ...
1
vote
1answer
168 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
250 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: ...
1
vote
1answer
876 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
972 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 ...
1
vote
2answers
4k 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
1k views

Selenium Webdriver - Unable to get focus back to child window

I have scenario where clicking on some link in parent window opens a new window, after performing the actions on the child window, iam unable get back focus on the parent window, I have used the ...
1
vote
1answer
3k views

Set attribute of an element using webdriver + python

I am trying to automate uploading an image. The uploader is a Flash object and using AutoIt is not an option. So I am trying to work my way around this with just webdriver. The idea is to 'set' the ...
1
vote
1answer
46 views

How to start all tests with a clear session after browser crash,

Im using WebDriver and Python to automate a website. I have a suite of tests and sometimes running into the following problem. Test no.1 = Login to home page, navigate to Account page, perform some ...
1
vote
1answer
62 views

Selenium webdriver - Java with Webservices

In our application we are using web-services and DB, is it possible to integrate Selenium webdriver with web-services (Soap UI)? If two different frameworks are integrated, whether this is good?. My ...
1
vote
1answer
61 views

Functional and UI Test cases for a Slider

I am working on a website. Here is the URL : http://northeastindiaholidays.com/. There are two sliders on the front page: The one with in the background, with a full resolution image. The second ...
1
vote
0answers
49 views

using Webdriver2 to control CEF3 portions of .NET project

We have a very large .NET project. This has been E2E/regression tested using QTP for 3 years. Eventually our AUT is moving to the WEB. This process is expected to take a couple of years, it will be ...
1
vote
2answers
2k views

Selenium webdriver - Unable to locate element,xpath,error

I am testing localization. I am running the same URL with other countries in my data provider. The HTML I am looking for is: <a class="learn-more linkable" data-url="/speakers/minijambox">En ...
1
vote
0answers
128 views

WebDriver tests run on mac, but on windows the PHP session cannot be deleted, therefore cannot get past login screen

We have a CakePHP application and our WebDriver tests run fine on mac. We have moved a copy of the app and the tests to a windows machine so tests can also be developed there. This is so we are able ...
1
vote
0answers
228 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
0answers
398 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
0answers
351 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 ...
1
vote
1answer
194 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 ...
1
vote
1answer
2k 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 { ...
1
vote
2answers
91 views

Selenium Webdriver runs in root but not in non-root account

I have this problem that when I run in root account it works properly with the test cases returning the expected. But in non-root account it keep giving me error. Thanks in advance if you are helping ...
0
votes
2answers
3k 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 ...
0
votes
3answers
11k 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, ...
0
votes
2answers
6k views

How to open multiple browsers using webdriver?

I want to perform multiple browser testing: While working on a project i needed to open multiple browsers simultaneously using Webdriver script. Does anyone have experience in implementing this ?
0
votes
1answer
47 views

How to compare value of a td of a table with a numeric value using webdriver?

I have to compare a value of a td tag with a numeric value. I have o check whether the value coming in that td is >= some value. The html of td is: <td class="sorting_1">78000</td> I ...
0
votes
2answers
44 views

Using remoteWebDriver, can I change the time on the executing system? [duplicate]

I'm trying to functional test some code that is dependent on reading the client date, and I want to validate that it does so correctly. Locally, I can change my system date using Java and run the test ...
0
votes
3answers
510 views

How can I do data parameterization in Selenium Web Driver?

I want my test case to run once and test n number of inputs at various positions. Suppose If I want to check a login screen for different members like manager,user,admin,e.t.c then instead of running ...
0
votes
3answers
80 views

How can I restart the browser in the middle of a test?

I need to verify some functionality around present the user with the option to pick up where they left off when they return to the site after having abandoned their cart. How can I close the browser ...
0
votes
2answers
88 views

How to get number of sizes of check-boxes i have selected, using selenium webdriver java?

As there are five number of check boxes in a page, i have selected two check boxes. so i want to get the number of size as two check box selected. How to get the number of size as two in selenium ...
0
votes
2answers
300 views

Question about the Selenium getTitle() Method

In some instances, the getTitle() method does not work for me. Take a look. @Test public void testTitleReliability() { driver.get("https://www.google.com"); boolean title = ...
0
votes
2answers
737 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, ...
0
votes
3answers
174 views

Cannot click link inside div?

I'm using webdriver, and I have the following html (sanitized): <div class="span12"> <a href="javascript:void(0);" id="linkID" onclick="doStuff()">Link Text Here</a> ...