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

0
votes
1answer
1k views

JavascriptExecutor is not identifying the button to click in Webdriver

I have this HTML <div class="btnContr"> <input type="button" onclick="return cancel();" value="Cancel"/> Below is the xpath identified, using this xpath, I am not able to click on ...
1
vote
1answer
678 views

How to switch/handle particular popup window (When multiple popup are opened) and close particular popup window

i know how to switch to single popup window, but i do not know how to switch particular popup window when you have more popup windows. Scenario is: Go to the each and every popup 1. Get the title 2. ...
1
vote
0answers
22 views

select_by_value causing odd issue with the DOM

I'm new to Python and Selenium testing so please forgive me if this isn't written right. I've been asked to look at the test that does a few actions on a form. The form has 2 text fields, a drop down, ...
1
vote
2answers
106 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
0answers
60 views

Blurred screenshots with Selenium Webdriver

Please refer to the link to see what kind if screenshots I get - http://goo.gl/uDIyf3 instead of http://goo.gl/BQy1hI . Not sure what could be wrong here as the same code has been working for me on ...
0
votes
2answers
85 views

UI Automation Checking between two applications

I have a need to automate regression scenarios in the following environment: Application A process a case and dispose it to Application B. Application B wait for that case up to 10 minutes. ...
1
vote
1answer
109 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 ...
0
votes
1answer
37 views

Clicking near the target element using mouse co-ordinates inside Firefox Window

http://www.dropmocks.com/mFuqje. In the screenshot you can see times like 12am, 1am.I have stored the times in a list and iterated one by one. For every element, I want to perform a click action ...
0
votes
1answer
180 views

Calling data from one class to another class - framework for JUnit

Please forgive me as I am still very new to the world of test automation. I have started out by using Selenium WebDriver with JUnit4, predominately on windows OS, although I have modified my scripts ...
0
votes
1answer
58 views

Alternate command for selenium.selectWindow(“”) in webdriver

We are switching from Selenium RC to Webdriver, but most of the commands after converting in to Webdriver are not working . The web driver statement for selenium.selectwindow(" title") is ...
0
votes
1answer
41 views

WebDriver Clicking button issue in IE 11

Have a suite of web-drivers tests that run in chrome and IE 10, but will not run in IE 11. The tests fail in IE-11 when clicking a button as the following action (a form popup) does not occur. I ...
2
votes
1answer
187 views

PHPUnit Selenium2TestCase BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar , phpUnit, selenium extension for phpUnit. This test run ok $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
1
vote
1answer
78 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 ...
0
votes
0answers
20 views

Sikuli wrapper for .NET..Unable to connect to the remote server

I am using a Sikuli wrapper for .NET (Sikuli4Net). Using an embedded jetty server, it exposes the core functionality of Sikuli for use within .NET projects. However, in Visual Studio, when I try to ...
0
votes
1answer
203 views

Webdriver - Problem with loading profile of Tor Browser Bundle

could you give me any suggestions how to solve the weird problem I experience with webdriver? I like to use webdriver to control the browser from the Tor Browser Bundle (TBB). Controlling the TBB via ...
0
votes
0answers
28 views

How can I prevent Selenium from dropping my session?

I'm trying to select values from a drop down on a page. There are multiple drop downs and the code seems to have no problem selecting the right drop down when given the correct identifier to choose. ...
0
votes
2answers
261 views

Selenium: driver.findElement(By.xpath(“xpath”).click(); failing

The command driver.findElement(By.xpath("xpath"). click(); is not working in Web driver. Kindly check the below code written in selenium RC and webdriver. Selenium RC : public void ...
0
votes
1answer
95 views

In WebDriver I need to locate a text that's sibling to a tag

I am using WebDriver and I need to use XPath to get the text that appears after the <br></br> which is "59Min" from the below HTML. <div> 2Hrs, 56Min <br></br> 59Min ...
0
votes
2answers
46 views

Unable to locate element in a dropdown

ul class="appt-dropdown-menu"> <li id="service-slot-blocker" class="slot-blocker-holder"> <li id="service-05b41399015375913"> <code class="light-blue"></code> <span ...
1
vote
1answer
100 views

Selenium webdriver java with jdbc

I am using selenium webdriver with Java jdbc. Below are my queries. First: I am trying to login to the application with username and password from database (Using SQL Query). I am getting the ...
1
vote
2answers
61 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 ...
0
votes
1answer
286 views

How to click on Canvas element?

How do I click on a Canvas element by using Selenium Web Driver and Java? I have searched Google but didn't find what I needed. A marker/pin is on the Google map and I have to click on the ...
4
votes
3answers
10k 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 ...
0
votes
1answer
48 views

how to print currency symbols using webdriver with testng

In Dropdown currencies are listed as($,€,₤). Based on the selected currency, prices will display in other page like ($10,€10,₤10). Using the below code, I got the selected value from the dropdown. ...
3
votes
1answer
50 views

Headless browser testing using X virtual frame buffer

My current setup is using Jenkins as my CI environment, which has some ubuntu server nodes to execute the end to end browser tests on some amazon EC2 machines using selenium 2. I am wondering if ...
0
votes
2answers
246 views

How to handle “Time out receiving message from the renderer” in chrome driver?

I am new to selenium, I'm facing "Time out receiving message from the renderer" in chrome browser while running test with selenium 2.41 and chrome 2.9x. I have tried many tests to reproduce the issue, ...
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 ...
0
votes
1answer
170 views

How to use locator value in WebDriver?

I am learning Java to automate testcases using WebDriver. As for now I was using Selenium IDE. I have a scenario. In date picker on selecting date, based on the current date and time-future timeslots ...
0
votes
1answer
158 views

Running Selenium webdriver scripts in android device (Samsung galaxy tab)-Portrait mode

I have been stuck in an issue while running selenium webdriver script in android device -Portrait mode. Script is running successfully in landscape mode but when we run the same script in android ...
0
votes
2answers
150 views

Webdriver: Selecting element by position in drop-down menu

can anyone here suggest a method to select an item from a dropdown menu, using the item's position in the list? Say you have a normal dropdown menu to select the month of birth. (Example on this ...
0
votes
2answers
6k views

How to iterate a list of WebElements and print the values one by one to perform some action

List<WebElement> allLinks = driver.findElements(By.xpath("//div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' or @class='datepickerSaturday' or ...
1
vote
2answers
568 views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know, that how we can take a series of screenshots / a video recording for a screen using Selenium 2 / Web Driver with JAVA ? Please provide the answer or the lick where I can get ...
-1
votes
3answers
258 views

How do I get dynamic div content in selenium

See how the dynamic message displays in the browser. I am adding a name in a text field and clicking save button. After clicking save, a message displays as New Staff added or Staff Name already ...
0
votes
1answer
63 views

Difference between WebDriver and Selenium in Selenium Grid Node Configuration

I'm using Selenium Grid and noticed that I can configure the seleniumProtocol parameter for the different capabilities in the Node. I can chose between WebDriver and Selenium. Excerpt from my ...
5
votes
4answers
10k 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 ...
1
vote
1answer
68 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
158 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 ...
2
votes
5answers
6k 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 ...
1
vote
2answers
112 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 ...
2
votes
1answer
83 views

How credible are WebDriver tests?

We have recently encountered a bug that we are able to reproduce manually in Internet Explorer, without any significant effort. Same bug we have tried to reproduce also automatically, with WebDriver ...
0
votes
1answer
141 views

How to stop the browser loading process after 20 minutes?

I want to stop the browser loading process after 20 minutes in selenium webdriver script. Please suggest, how to do this?
0
votes
0answers
38 views

verificationErrors in WebDriver

When verification fails in multiple "try catch" blocks containing "verificationErrors.Append(e.message)" in a single test script, the test results log shows only one of those failures and instead of ...
2
votes
2answers
302 views

Selenium Webdriver or Sahi which is best for website/mobile site testing?

Can anyone tell me which is the best tool to use for web site testing? Sahi or Selenium Web driver. Am using windows OS in PC. At present Testing of both Desktop and Mobile Site in Manual. Trying to ...
0
votes
2answers
72 views

Accessing a sub menu within a sub menu using Webdriver with python on IE8

I have been trying for a while to complete this task. For context, I have a link called with text "Main Menu" along the top of the page, that when hovered reveals a list of more links. These links ...
21
votes
9answers
39k views

How to download a file using Selenium's WebDriver?

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = ...
3
votes
3answers
72 views

Is it reasonable to use Selenium RC over WebDriver if the former seems more suitable for the task?

The tests I am doing are on IE8, which is used throughout the company, and doesn't look to be changing any time soon. After testing both pieces of software with the system, it seemed as though ...
0
votes
1answer
58 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
1answer
51 views

Manipulating hosts file in WebDriver tests

Most developers and testers usually takes advantage of Operation System Host File (commonly known as "hosts") to "trick" the S.O. and the browser to load websites and webservices from another server ...
1
vote
2answers
4k views

Selenium WebDriver: select value from KendoUI DropDownList

I'm not being able to select a value from a Kendo's dropdown, this is the code (C#): var select = FindElement(By.Id("Type")); select.SelectByValue("HouseHold"); That's not the selenium raw api, I'm ...
3
votes
1answer
57 views

Is it possible to create something like PageObjects with SeeTest?

We reflect to use SeeTest for mobile app test automation. I am familiar with Selenium 2 / WebDriver and love to use PageObjects. Is it possible to create PageObjects or something similar with ...