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" problem),...

learn more… | top users | synonyms

5
votes
1answer
1k views

What Is the Best Way To Mock Browser Time and Time Zone in Selenium?

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 libfaketime/...
4
votes
1answer
257 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 allKeywords=driver....
3
votes
1answer
88 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 ...
2
votes
1answer
111 views

Selenium - sendKeys() not inserting value into textbox

I am not able to validate an international number text box in Selenium. I have tried earlier by name, class and other locators but it is not inserting the value into the textbox. Below is the text ...
2
votes
1answer
220 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
2k views

How to 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 ...
2
votes
1answer
603 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 ...
2
votes
1answer
707 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
27 views

SetPageLoad Timeout not working for Selenium web driver

In my webdriver test, I have the below. Despite the SetPageLoadTimeout, the script is still executing the next line before allowing the page to load. driver.FindElement(By.LinkText("MySurvey"))....
1
vote
1answer
121 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(); profile....
1
vote
1answer
108 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
143 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
266 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
249 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
18 views

Edit a script DOM element before being executed

I'm currently using Selenium WebDrivers for my tests and I'm struggling with an automatic download. The case is: I click on a button, it loads the next page containing a script tag with a click() on a ...
0
votes
1answer
50 views

Tools for Data Driven and Keyword driven tests in selenium with python?

I am new to selenium and python, I was watching some videos on data driven and keyword driven tests, the instructor was using TestNG with selenium and I was wondering are there any tools similar to ...
0
votes
1answer
44 views

JMeter Table & Tree Listeners always shows Latency = 0, Connect Time = 0, and identical Bytes values

Ran a Webdriver Sampler that opens a page and then logs-in an account. The configuration were 10 users/threads, Ramp-up period 1, Loop Count 1 on which I had a result shown below: Would like to ...
0
votes
1answer
35 views

How to read data from excel sheet using Codeception for Acceptance test

I am creating a framework to test a website. For that, I am using codeception framework and writing acceptance test. But I want to read the data or values (lets say for login and password) from an ...
6
votes
0answers
247 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, ...
2
votes
0answers
157 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 ...
2
votes
0answers
106 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 ...
2
votes
0answers
236 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 ...
2
votes
0answers
392 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
186 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 selenium-...
1
vote
0answers
154 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 jekyll/...
1
vote
0answers
61 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
58 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
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
29 views

how to pick a particular date from calendar through selenium webdriver? (not using xpath)

language :angular js &java I don't know how to locate the date component. anyone can help me
0
votes
0answers
46 views

Getting Unknown error While Using latest Verison of Selenium With Microsoft Edge Browser

My Code to launch Browser: System.setProperty("webdriver.edge.driver", "C:\\selenium-drivers\\MicrosoftWebDriver.exe"); DesiredCapabilities capabilities = new DesiredCapabilities("...
0
votes
0answers
15 views

Automating Youtube Search - Getting Error

I am getting the error " org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up". Please look at my code below: ...
0
votes
0answers
47 views

How do we scroll down in Native app using Appium? Eg: Terms & conditions/

I want to know how do we scroll in native Application. For eg 'terms and conditions' page. I am using Appium using selenium web driver.
0
votes
0answers
34 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 not....
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
42 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
27 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
70 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
21 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
589 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. org.openqa....
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
50 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
53 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
766 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) driver)....
0
votes
0answers
253 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
67 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
57 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 driver.findElement(By.xpath("//ul[@class='navigation']//a[@href='/test/...
0
votes
0answers
27 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
372 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
382 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 /http:\/\/www.site.com\/path\/image-/.test(window[window.varA+'-'+...
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 ...