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

2
votes
1answer
130 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
287 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
171 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
338 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
519 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
88 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
580 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
434 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
548 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
212 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
518 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
1k 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
2k 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
3k 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
2k 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
5k 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
477 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
779 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
3k 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
5k 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
1answer
246 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
3k 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
42 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
558 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
129 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 ...
3
votes
6answers
11k views

Take screen shots using selenium webdriver

How to take screen shot on both test cases "Positive and Negative" results. NOTE: Currently, iam working in selenium webdriver (junit) and i didnt have an idea about how to code for adding methods to ...
1
vote
2answers
813 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 ...
0
votes
1answer
111 views

PHPUnit Selenium2 calling a function

I am testing with PHPUnit and Selenium2. I am testing the admin panel. So, I need to add Admin Login Test into all my admin panel tests. I want to create a new Admin Login Test with a new file and I ...
0
votes
1answer
3k views

Selecting items in a combobox using Webdriver

Which Selenium Webdriver command is used for selecting items from combobox in Java? I mean when we want to select one item from a Combobox but this element is not an instance of Select class, e.g., ...
0
votes
1answer
150 views

CSS/XPATH selector management using python's dictionary

I have a lot of functional tests in Python. As expected , they use a wide variety of css/xpath selectors . I think I read somewhere that a practice is to have a dictionary where each selector would ...
0
votes
1answer
269 views

How to save compiled document on Desktop using C# Selenium

Using Selenium WebDriver with C# in VS 2010, I compiled a document using automation and then I want to save the file on my desktop. During automation a new window is popping up to "save or open file". ...
1
vote
2answers
789 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. ...
2
votes
3answers
366 views

How to wait until the count of a web element changes in webdriver?

I'm new to selenium. I am facing an issue. The number of web elements in a page increases on a button click(triggered by ajax call). So while getting the size of the element after button click gives ...
1
vote
2answers
225 views

Selenium Webdriver Mobile with Python - AndroidWebdriver4Python installation question

I found this Android webdriver API on github. I already have the Selenium Python client and have written many plain web-based test scripts with it. I have tried asking the git owner, but he has not ...
0
votes
1answer
675 views

How to automate Windows remote desktop login poup in server using Web Driver

Step 1: I have provided the login in browser level Step 2: It moved to remote desktop Step 3: When I click on remote desktop icon in browser it will show the window authentication login of QA ...
3
votes
1answer
1k views

Tests running very slow against Internet Explorer 9

I have a test automation suite setup using Selenium and RemoteWebDriver that runs against IE7/8/9/10 and FF10/20/24. The suite takes an average of an hour to complete on each browser except IE9 which ...
0
votes
1answer
132 views

Selenium and PHP

As I read on the net, Selenium tests should be written in the language of the App if this is possible. Our intranet-application is written in PHP. I was able to get Selenium working with PHPUnit but ...
0
votes
0answers
3k views

Webdriver : How to switch to a specific window?

I came across many solutions for switching between windows, one of them is: Set<String> allWindows = driver.getWindowHandles(); for(String currentWindow : allWindows){ ...
-2
votes
2answers
6k views

Selenium Webdriver Tutorial [closed]

I am interested in learning Selenium Webdriver. Can anyone please let me know where I can find the selenium tutorials?
2
votes
1answer
2k views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
2
votes
4answers
814 views

How to simulate Caps Lock keystrokes with Selenium WebDriver?

I know there is an action class where this is possible, but I just understand common keys, such as: enter, backspace, and tab. For instance: action.sendKeys (Keys.ENTER).perform(); For modifier ...
3
votes
1answer
1k views

How to handle a native OS (Ubuntu) file upload window in selenium webdriver with python?

This is my first time here but I have already posted this question on SO. I keep getting solutions for Windows + Java and not for Linux or python for that matter. I am using selenium and python to ...
3
votes
1answer
1k views

How to start Selenium with Firefox Portable?

I want to use Selenium Server on Windows 7 with a FirefoxPortable as browser, starting the selenium-server-standalon JAR file. My first attempt was without a profile, just like this: java -jar ...
1
vote
6answers
7k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to ...
1
vote
3answers
3k views

Jmeter's WebDriver Sampler VS. Selenium

Now that Jmeter has a webdriver sampler, is there anything that regular selenium can do to test a UI, that Jmeter still can't? For example, I use Selenium in Java to do things like getting html ...
1
vote
1answer
278 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 ...
2
votes
1answer
225 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
2answers
614 views

Can someone provide a detailed description of how the Selenium WebDriver isDisplayed() method works?

I currently have a large number of circumstances where I need to verify that a page (along with all of its elements) are displaying correctly. The isDisplayed() method of WebElement appears to be a ...
3
votes
1answer
2k views

Using Selenium's PageObject pattern and an Open() method

Here is an example of some C# WebDriver code I'm using to model a registration page: public class RegistrationPage : BasePage { private IWebDriver driver; private String URL = ...
1
vote
1answer
2k 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?