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

4
votes
1answer
956 views

Selenium - What Is The Best Way To Mock Browser Time and Time Zone?

I like to run Webdriver tests with altered time and time zone. I see two approaches ahead: 1.) Using a mocking library like SinonJS or TimeShift.js. 2.) Using system libraries like ...
3
votes
1answer
44 views

Selenium WebDriver Spicejet website automation?

I am trying to automate spicejet.com website, but the thing is I am not able to access the dropdown values using select as the dropdown values like destination, source etc are not in Select ...
2
votes
1answer
29 views

Selenium Webdriver : parent login window closes after login and child window opens

I have a test case with following scenario: 1) Navigate to website. 2) Enter Login Credential. 3) Click on Login. After login in my application, login window is closed by system and new child ...
2
votes
1answer
205 views

Getting web driver exception message while tapping list elements using appium

I am using appium 1.4.8 on mac and I'm automating native app using selenium. I am stuck at a situation where I need to tap each element in a list. I wrote below code: List ...
2
votes
1answer
188 views

Automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS

I'm automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS. 1) To get started with WebDriverJS for Node, I downloaded a copy of the ChromeDriver and selenium-server-standalone ...
2
votes
1answer
676 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
1answer
49 views

Problem with drop-down menu

I'm new to Selenium Webdriver and I have a problem with a dropdown menu. I compiled my code but sometimes it returns the error: org.openqa.selenium.NoSuchElementException: Unable to find element ...
1
vote
1answer
66 views

Firefox WebDriver fails to accept untrusted certificates

I'm trying to access SSL-protected site with invalid certificate (unknown issuer). I followed instructions and configured Firefox FirefoxProfile profile = new FirefoxProfile(); ...
1
vote
1answer
94 views

Expecting a popup upon closing the browser

I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, at that ...
1
vote
1answer
121 views

Clicking on java script generated dynamic elements using Remote Web Driver in selenium

I have one web page, all the elements on that page are generated by java script code. I want to click on one of the button on that page, I was able to do this using the chrome driver,FF Driver but ...
1
vote
1answer
1k views

Handle the File Upload dialog in Protractor for IE11

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
1
vote
1answer
542 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
1
vote
1answer
254 views

WebDriver - Using loadablecomponent design for URLs with query parameters

For example if the url is - http://blah.com?origin=home&id=54&level=2. This could be a dynamically generated link on a webpage with 'id' and 'level' values from the DB. Now if i want to use ...
1
vote
1answer
242 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 as expected. But in a non-root account it keeps giving me an error. Thanks in advance if you are ...
0
votes
1answer
44 views

Select multiple options and selection values will come from Excel

What I am trying to do is select multiple options from this example site while holding CTRL http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html The multiple selection values would come from ...
0
votes
1answer
43 views

Test Scenario for cookies in selenium webdriver

I want to work with cookies in my project, I don't know what will be the Test Scenario and Test Cases for it. Please help.
6
votes
0answers
207 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, ...
4
votes
0answers
46 views

What bugs cannot be found with PhantomJS?

How credible is testing performed with PhantomJS WebDriver? What are types and examples of bugs that can be found with Chrome or Safari that cannot be found with PhantomJS? PhantomJS is a scripted, ...
2
votes
0answers
223 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
0answers
20 views

PhantomsJS rejects cookies set programmatically

I tried to set a cookie programmatically and PhantomJSDriver rejects that cookie even if cookie belongs to the current domain. The error message is very generic not revealing much details: Caused ...
1
vote
0answers
97 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 ...
1
vote
0answers
117 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 ...
1
vote
0answers
57 views

Both machine- and human-readable data-driven test cases

At this moment I write my test cases in Markdown. So they can be version-controlled (I use Git). From Markdown I can render the sources into either HTML or PDF, it can be automatized through a shell ...
1
vote
0answers
129 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
1
vote
0answers
93 views

Internet Explorer doesnot login to website of remote desktop is not opened

I am writing a simple script that will login to a website, I am trying to run it through Jenkins job on a remote desktop , I have placed my code on GIT Hub and configured Jenkins to run test. My ...
1
vote
0answers
57 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
0answers
375 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
1k 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 ...
0
votes
0answers
8 views

Selenium- what is the appropriate waiting method between pages navigation?

I have a problem with the waiting used between pages navigation. I need to navigate to all links in the current URL. and then navigate to each link to check a condition if specific text appears or ...
0
votes
0answers
19 views

Unnecessarily wait 4 minutes on a page which has Google map as a field

Environemnt - Java + Web Driver + Java based application. In our application, we use google maps as an embedded component/object (using - maps.googleapi.com). There are other components/fields on ...
0
votes
0answers
27 views

Could not click the upload button for SafariDriver

There is a upload button on the website as the code below <div class="fileUpload btn btn-primary"> <span>Upload</span> <input class="upload" id="id_file" name="file" ...
0
votes
0answers
13 views

How to set Selenium Webdriver using Internet Explorer Browser to not share sessions during multi threaded testing

Im trying to test against Internet Explorer 11 browser multi threaded using selenium webdriver with IEDriverServer.exe. I can now launch multi threaded IE browsers and interact with it but it seems ...
0
votes
0answers
51 views

How to organize code in automation framework?

I am trying to figure out most readable way to organize my code (with POM) So far I have split out the following: Pages (methods for the specific pages) 'GoTo' pages (I don't need it but ...
0
votes
0answers
47 views

Where can we see @Test(description=“test description”) in report?

I am unable to see the my test description in report. I use this annotation for it: @Test(description="TestCase Description") Where can I see the above description of my test case in the final ...
0
votes
0answers
34 views

Search Dom for multiple elements using explicitwait

Hi I'm using selenium webdriver and when I click to a certain website I want the webdriver to return a list of elements with similar classes, in this case a list of elements that, once clicked/toggled ...
0
votes
0answers
19 views

On different OSes, what standard files can I assume exist which can be uploaded?

One of my webdriver testcases does a file upload to the website, in order to test that attachments can be added to message posts. This is implemented easily enough with a single line of code: ...
0
votes
0answers
162 views

How to get window ID with Selenium / WebDriver

Can anyone please suggest me how to use Set and Iterator concept to get parent and child window id? package pack1; import java.util.Iterator; import org.openqa.selenium.Alert; import ...
0
votes
0answers
461 views

Error when clicking element::: org.openqa.selenium.WebDriverException: d is undefined

Getting following error when clicking. Scenario: In application I have collapsed button on expanding that , its submenu are listed and clicking on sumenu open that particular page. ...
0
votes
0answers
50 views

WebDriver : selection is not working properly

I want to select Manage Customers & Projects but with below code 2 options i.e. Manage Customers & Projects and Manage Tasks both are getting selected. Not getting whats going wrong : ...
0
votes
0answers
41 views

Selenium Webdriver : Selection is happening twice

I want to select only Manage the customers and Projects . But did not getting , whats going wrong with below code. It selects both Manage the customers and Projects and Manage Tasks My code: ...
0
votes
0answers
35 views

Unable to get testng report one by one; Both reports are coming simultanously

I have two testng.xml files. I did entry for these two testng.xml files in pom.xml like this: <suiteXmlFiles> ...
0
votes
0answers
49 views

Automation - Checklist Libraries for html input values

Are there any java libraries which help in input field validations data as per any checklist? For example, an input box needs to be tested for alphabets, numbers, special characters, length ...
0
votes
0answers
654 views

How to set script timeout?

I have the following code: Webdriver driver = new FirefoxDriver(); // ... String myHugeScript = ... ; // Script loaded from a resource on the classpath Object result = ((JavascriptExecutor) ...
0
votes
0answers
239 views

Wedriver-Cannot access links in tables that are dynamically created

I am clicking on links that are in tables and nested tables, So for example click on Report/General and you can see more options to click on. I have tried so many xpath now to click on the report ...
0
votes
0answers
66 views

ElementNotVisibleException on Mac, not Windows

I'm trying to get Webdriver in Python to click a cell in a table, wait for JavaScript to add an element into the cell and then click the element that appears which causes a dropdown to appear. We ...
0
votes
0answers
55 views

Selenium script for selecting any one of the users

I have added the code selecting anyone of the user but only first time it works so please help me with this. Stripe.com ...
0
votes
0answers
26 views

IE10 does not always start

Using RemoteWebDriver, periodically, IE 10 gets into a state where Webdriver cannot take control of the browser window after opening it. My test never returns, and the workstation I'm using shows the ...
0
votes
0answers
347 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 ...
0
votes
0answers
370 views

Regex escaping issue in Selenium IDE and WebDriver

I have a Selenium IDE command evaluating a regex against a string in the DOM, something like this - Command waitForEval Target ...
0
votes
0answers
2k views

Why can't my Selenium Grid VM node get parameters from/register to the hub?

I tried to set up a Selenium Grid node on a virtual machine. I am using VirtualBox for the VM and Jenkins (with VirtualBox plugin) to set up the grid. When I try to register the node, I get the ...