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
75 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 ...
0
votes
0answers
573 views

On test case failure taking a screenshot with Selenium WebDriver

As the question clearly states, I used the screenshot coding in my catch block but it doesn't work. try { LoginPage lp = new LoginPage(driver); lp.userName.sendKeys("administrator"); ...
0
votes
2answers
144 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 ...
1
vote
1answer
605 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
421 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.
0
votes
2answers
331 views

XPath not recognised in page object model in WebDriver [closed]

xpath not recognised in page object model in webdriver. @FindBy(xpath = "//td[contains (text(),'xxx')]") public WebElement topMenu; topMenu.click(); Error: Unable to locate element: ...
1
vote
4answers
2k views

How to write test cases in selenium webdriver using C#, simultaneously when web application is being developed (application pages not available)

I want to write test cases when application is under developing. I know the design of the application based on the wireframes. I intend to write test cases in C# using the Selenuim WebDriver. ...
0
votes
3answers
10k 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 ...
0
votes
0answers
482 views

How to store webelements(dates) in an array

How to store webelements(dates) in an array and retrieve it? I got the total no. of dates by using the xpath : //div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' ...
0
votes
1answer
205 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 ...
1
vote
2answers
899 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 ...
2
votes
2answers
731 views

Where I can get all the commands related to Web Driver / Selenium 2

I am not able to find all the commands for Web Driver / Selenium 2. Please help me providing the same. Thanks
2
votes
1answer
437 views

How to navigate to a alert using Selenium Web Driver with Java?

I am trying to navigate the command on the alert box, but I am not able to do it in Web Driver with JAVA. Please help me with it. Apart from this I would also like to know how to tackle with the ...
0
votes
1answer
198 views

what is Keys.ZENKAKU_HANKAKU in webdriver?

As i came across this code, driver.findElement(By.name("xxx")).sendKeys( Keys.ZENKAKU_HANKAKU); so wanted to know why and when to use this kind of key.
1
vote
2answers
111 views

what are the equivalent commands for label and Goto label in webdriver

I used Selenium IDE to automate the project. Now I started learning Webdriver. In IDE, there are few commands like label and Goto labels, where I can create a bunch of code under a label and use ...
2
votes
1answer
1k views

Fieldlevel validation in Selenium Webdriver (Java)

how to test validations for "FIRSTNAME" textfield. Below are the details and code. URL: http://www.vrlbus.in/vrl2013/register_customer.aspx Special chars: #!#!#$@#!$@!$@#$%#%^#$^^&%&$%* ...
1
vote
2answers
2k 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
358 views

What is the difference between type() and typeKeys() in WebDriver?

As both of them do the same activity is there any special differences between type and typekeys in selenium webdriver. wdBacked.type(locator, value); wdBacked.typeKeys(locator, value);
0
votes
1answer
697 views

Selenium C# 4.0 release says you can hide the command prompt - how do you actually do it?

I'm updating to version 2.40 and was looking at the change log. http://selenium.googlecode.com/git/dotnet/CHANGELOG It says "Now provide an option to hide command prompt window for driver service ...
0
votes
2answers
623 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
202 views

How to select an default window or popup in selenium webdriver?

I want to select the current window,frame or popup where my browser is pointing. (i.e when i doubleclick or click it opens an popup or window) I want to get through that window or popup using selenium ...
1
vote
1answer
520 views

Using Ruby Selenium WebDriver how to check URL or Navigation which return 404?

What is the most convenient way of using Ruby script for Selenium WebDriver to check all url's (from navigation menu)of any web page.Actually want to run them to see where they go. For example: ...
1
vote
1answer
777 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
5k 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" ...
2
votes
1answer
121 views

Driving client interaction tests with Selenium

I have some experience with JMeter for performance and scale, but I'm very new to Selenium for browser based testing. At present I have some simple Selenium scripts recorded for Firefox. These are ...
0
votes
1answer
239 views

Is parameterized constructor (Java) supported in selenium webdriver?

I was asked in an interview whether Selenium Webdriver supported parameterized constructors. Example: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...
0
votes
1answer
145 views

Alerts: How to assert a given paragraph

Using WebDriver and JUnit 4.11. I'm attempting to find an alert and assert the body of the alert paragraph. My code is: @Test public void dNameField(){ WebElement nameField = ...
2
votes
1answer
318 views

How to execute Ruby Selenium Web Driver tests using Jenkins?

I have written quite a few Ruby programs for my clients test automation project.But the problem is my client wants to check the output to his PC without instilling ruby.He is asking me to make one web ...
0
votes
2answers
402 views

How to find the element that displays and hides with in 2 seconds in selenium webdriver?

I am automating a site in which there is a section to create forums. Every time I create a forum it displays message as forums created and hides after 1 section. I have to check the displayed message, ...
1
vote
2answers
80 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
2answers
455 views

Code Coverage for Web Applications?

Does anyone have any experience using code coverage tools for web applications? I primarily work with Webdriver and JUnit, but I am not sure if we are covering all the possible cases. This may ...
0
votes
1answer
386 views

Using Selenium webdriver with chrome browser - Junit or java - how to upload a file from desktop(or any folder in pc) to application [duplicate]

Using Selenium webdriver with chrome browser for automation - Junit or java programming - how to upload a file from desktop(or any folder in pc) to application
1
vote
1answer
413 views

How to select Security Certificate From security Dialog

The problem I would like to solve is as follow: go to a website which is protected by client certificate authentication using browser once the security challenge dialog box is shown, select on the ...
0
votes
1answer
185 views

Prime Faces editing component and Selenium

I'm creating a new tests with selenium in my job. But i can't get one element in my system. We use Prime Faces and i can't get this element. I need to send a value to him, and He is a iFrame. I tried ...
0
votes
3answers
408 views

Using WebDriverWait to verify a performed action versus assertions in JUnit

Can someone tell me if by using the following code is sufficient enough to verify that the actions performed have taken place. So by using a wait command for certain elements to be visible in the DOM, ...
0
votes
3answers
772 views

Best approach to use when values are dynamically created?

I'm looking for some advice on how to select a WebElement. When I click a button that creates a new 'page', the given value is dynamic, in that it is totally random and not sequential. I would expect ...
2
votes
4answers
1k views

Has any faced issue when automating auto suggest text box using selenium webdriver

I am automating an application which has auto suggest text box. I am facing an issue that sometimes the auto suggest values are not shown up at all. This happens 50% of the time. Worrying part is this ...
0
votes
2answers
2k 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
4answers
872 views

The code of wait method for Ajax call to complete

I am testing an GWT based app. But my test are failing left and right when the application response is slow but the selenium execution speed is fast. I have written a webdriver wait method to handle ...
2
votes
3answers
3k views

How to make my tests more robust in WebDriver using JUnit (code included)

I'm hoping someone can advise me on some best practices to make my tests more robust. The problem I'm having is that every so often my tests will fail at the point of WebDriver waiting for an ...
0
votes
3answers
416 views

Is it possible to integrate bugzilla with selenium web driver

Is it possible for us to integrate selenium web driver test with Bugzilla? My intention are as below: If we can integrate web driver with Bugzilla, can we automatically attach screen shot of ...
2
votes
2answers
681 views

Asserting a checkbox is not checked by default in WebDriver with Junit

I'm using WebDriver with Junit 4.11 and I want to assert that a checkbox is not selected by default, and to do that I'm unsure which method to choose. The following is from the DOM before the ...
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 ...
10
votes
9answers
4k views

What is a good website to hack around using Selenium?

I want to learn Selenium, but I don't know what to code. Sure, I can throw Google some queries, I can fill out some forms, press buttons, find divs and links, etc. But I think this stuff is pretty ...
0
votes
0answers
83 views

How to tear down E2E scenarios into JBehave stories?

I have been been asked to automate few E2E scenarios which merely contains few hundred steps. i did POCs and they are working, but when it comes to real implementations, aplenty of question arises. ...
0
votes
1answer
195 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 ...
1
vote
2answers
2k views

How to generate testing report in JUNIT in webdriver

I am using Selenium webdriver 2.0 in JUnit framework. I need to generate a report on my tuned both (positive and negative) test cases. NOTE: We have an option to generate report by default in ...
0
votes
0answers
40 views

xss scripts through console of web-developers-tools

So, well i am learning selenium webdriver, junit4. I need to know, is it a proper way to add "xss scripts" through console of web developers tools ? Can anyone help me with example ?
1
vote
1answer
366 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
118 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 ...