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
0answers
16 views

Help Finding image in Sikuli X in Java

I am having an issue trying to find an image on the screen, I tried doing it in two different ways and it doesn't seem to work for me. I am trying to do this with Appium running on IOS simulator which ...
3
votes
2answers
4k views

Connection refused error when running selenium with chrome and firefox drivers

I am running selenium tests with firefox and chrome drivers. I get a connection refused error when I run the tests in as a block Test example : require 'minitest_helper' headless = Headless.new ...
27
votes
14answers
88k 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 = ...
0
votes
0answers
308 views

Selenium WebDriver Code for PeopleSoft Sub Page

I am new to Selenium WebDriver World. I am trying to work on a script to Add a Person in PeopleSoft HCM Application. Basically, On the Personal Data Main page, you first start by adding a Effective ...
5
votes
1answer
142 views

Eclipse is automatically running unwanted selenium tests

I have two test files (lets say they're SomethingTestA and SomethingTestB). Inside SomethingTestA, I have a bunch of mini smoke tests methods, like so @Test public void testCreate() { ... } ...
5
votes
1answer
191 views

How do I verify a Link URL using Selenium Webdriver / TestNG?

I'm trying to do an assert to make sure a correct XMLHttpRequest is made. I know that I can get the exact Request URL from the Developers Console -> Network tab -> XHR tab's general information ...
5
votes
5answers
9k views

How to handle self-signed SSL certificate error in IE8? (Selenium Webdriver + Java)

I am literally stuck to this problem for two days now. Scenario The website that needs to be tested has a self-signed certificate. So Internet Explorer (8 in Windows XP) shows "The security ...
1
vote
0answers
39 views

Why a PhantomJS grid node is defined differently compared to other browsers

I am trying to set up one of my Selenium Grid nodes using PhantomJS. (The rest of the nodes are all working fine with Firefox browsers) Now generally, when we configure a node, we launch a ...
2
votes
1answer
78 views

Find custom elements in webdriver

Why aren't custom tags supported yet in Selenium WebDriver? I realise the W3C web components proposal is still under review, but browsers are already implementing them widely (angular apps come to ...
1
vote
4answers
110 views

What is a good automated tester interview technical test scenario?

We have a role which requires an automated tester. Mainly this will take the form of writing automating tests using Selenium Webdriver written in Java. I am trying to develop a technical test ...
0
votes
1answer
65 views

How do you monitor Selenium Grid?

I havea grid of 18 nodes testing our application. Currently I have written a rest-api, which returnes the CPU information on the machine through a java servlet. It's working, but it is not nice. How ...
1
vote
1answer
84 views

Can't click a button [Python + Selenium]

I'm writing a program to automate some actions on a website using Python and Selenium and I need to click a button with this code: <button class="button login" data-popup="login">Change ...
4
votes
3answers
80 views

Test, Improve performance of WebDriver Automation framework

I have designed a hybrid(keywords and data in same excel sheet) framework using WebDriver+Java+TestNG+Maven. I am using PageFactory, Singleton Pattern . I am using different type of HTML locators in ...
0
votes
2answers
104 views

I get an exception, “Element is no longer attached to DOM” when I run my code, but In Debug mode, it works fine. I'm using Java and TestNG

In the webpage I'm testing, there are 3 options in a drop down and on selecting each option, rows in a table gets populated. I'm just trying to locate the table value through xpath and I am getting an ...
0
votes
4answers
5k views

How to Retrieve the values from a drop down using selenium-WebDriver?

I am using below script to retrieve specific item from drop down but it's not working. Select salTitle = new Select(driver.findElement(By.id("s2id_QuickEnquiryForm_salutation"))); ...
0
votes
3answers
48 views

Webdriver + servlets, do they add up?

I was recently interviewed for a job as a developer in test, and the interviewer asked me if I had any previous experience with servlets. This questions was totally odd because they don't use ...
4
votes
4answers
9k views

How do I handle the login modal dialog created by onLoad in a WebDriver & Java based test automation

I am working on the test automation that uses WebDriver (Selenium 2) and Java. The AUT is web-based application. A modal dialog pops up that requires user authentication before the user can access ...
2
votes
3answers
80 views

What proportion of tests cases should be automated via Selenium Webdriver? [closed]

I work with e-commerce websites and I am wondering how much of the tests should be automated. I plan on automating the login and check out functionalities but what about clicking links to navigate ...
4
votes
2answers
1k views

What's the best approach to asserting dynamically generated values with selenium?

Suppose you have automation tests (my example uses Selenium) to assert complex business logic for a web site. What is the best way to assert that thousands of different test cases are outputting the ...
1
vote
1answer
177 views

Selenium: How to access the same session in a new window?

I have search throughout the internet but none of the answers I found have a clear solution. I am using selenium webdriver with Java. My test needs to verify when you save your login information ...
-1
votes
1answer
479 views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
-1
votes
3answers
170 views

Handling the unexpected popup ad's in website

I am currently working on Automation project for E-commerce site . In some pages unexpected popup's(ex:ad's) are displaying .Because of that my script was failing by throwing exceptions like ...
0
votes
1answer
173 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
-3
votes
1answer
126 views

I'm getting error while executing selenium programs

import java.io.IOException; import org.apache.bcel.generic.Select; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...
4
votes
2answers
2k views

Web browser (in)compatibility with Selenium WebDriver

Very often, when my local or remote instance of Firefox is automatically updated, it stops working with the most recent version of Selenium WebDriver. They simply become incompatible until next ...
2
votes
1answer
256 views

Selenium WebDriver sometimes fails to connect to the browser when running tests in headless mode

I'm experiencing timeouts when Webdriver connects to the Chrome browser in headless acceptance tests setup on Linux. I'm using the following setup to run the tests: Vagrant machine with Ubuntu ...
5
votes
1answer
2k views

Testing ExtJS UI with WebDriver

Our Web app is using ExtJS framework for rendering UI. However, ExtJS-rendered UI is hard to test automatically because: For most clickable elements, ExtJS uses generated ids like "ext-gen-345" ...
0
votes
3answers
2k 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 ...
0
votes
2answers
168 views

Cannot access elements in iframe

I cannot access elements inside of an iframe, I have tried the call: IWebElement iframeSwitch = driver.FindElement(By.XPath("//iframe[contains(@id, 'contentIFrame1')and contains (@title, 'Content ...
1
vote
1answer
50 views

Setting up central system to run selenium scripts

Currently I am working on automation project. I have completed all test cases and executing in my local. Now my Project Manager wants to be execute it in a server so any one can access and execute the ...
2
votes
3answers
79 views

Is this a good test for a selenium developer?

My boss has given me the assignment of interviewing one of the new automation engineers. The only task left is the technical one, and I have been thinking about a good test that I could give him. I ...
6
votes
8answers
17k 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 ...
0
votes
1answer
3k 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 ...
2
votes
4answers
1k views

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

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 ...
4
votes
7answers
25k 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
1k 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 ...
0
votes
1answer
5k views

Running my first program using TestNG and getting error

I am getting following error when run my selenium webdriver progarm using testNG: org.testng.TestNGException: Cannot find class in classpath: testng at ...
3
votes
5answers
248 views

What should I learn next as QA

I have been working as a software tester for the last 4 years. I have the following skills and day job experience: 1 - Manual Testing of websites & Mobile Applications. 2 - Automation using ...
0
votes
4answers
5k 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 ...
3
votes
3answers
5k 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 ...
-1
votes
4answers
3k views

How to automate the action on a canvas object, when the canvas element has no name or ID in Selenium?

I want to automate the testing for a digital signature, which is a canvas element. Can anyone provide me with sample code, which could be used. I have tried, selenium.clickAt(), ...
1
vote
2answers
275 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 ...
2
votes
2answers
775 views

Verifying if an image Is displayed on a webpage

I have read that there is no "sure shot" way of knowing that an image is loaded or displayed on a webpage using Selenium. I want to know the reason behind it, as to why this is completely not ...
0
votes
1answer
1k views

how can i switch to the new instance of browser in python selenium webdriver [duplicate]

I am using selenium webdriver with python. I am not able to find a way in python by which I can switch the webdriver to a new browser. My web application have multiple links and buttons Clicking on ...
3
votes
3answers
1k views

Selenium automating ICEFaces Application - locator for dynamically generated ids

I'm trying to automate a very short sequence in a web application developped using ICEFaces. I need to click on a button which is coded as <input type="image" title="Unterbrechen" style="padding: ...
1
vote
2answers
5k 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
3answers
8k 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" ...
3
votes
1answer
2k 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 ...
1
vote
0answers
79 views

Loading large amount of data into cucumber / selenium via yaml files

I'm somewhat new to automated testing and this is a general testing design question based on my current project: A client has a question/answer tool in Excel that is being ported over to a ...
0
votes
2answers
3k views

How to generate a report for test case in selenium webdriver using javascript

I am working on selenium webdriverjs. Now I want to know about reporting tools, as up to now I am not using any reporting tools. Now I have decided to use a reporting tool. Please suggest me best ...