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
2answers
14 views

selenium webdriver getting error as with implicitlyWait was undefined

package mypackage; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import ...
0
votes
3answers
41 views

After scrolling the page, xpath of a element is not present

I have requirement that needs to check a div on home page that contains sub images. I am trying like this My Sample Code : module.exports.openurl('www.google.com', "Online Shopping | Buy Phones, ...
2
votes
1answer
76 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 ...
0
votes
1answer
12 views

How to automate Mouse hover action in webdriver/java/kendo ui

I just want to automate mouse hover function for my project the scenario is Scenario : There is a text box, if i hover on it,the edit icon will enable and i have to click that icon.
0
votes
1answer
26 views

latin characters getting displayed as junk characters from the webdriver getText() command

I have a requirement where I am trying to automate the registration form which is in French language, while automating I am trying to get the text of the error messages which are in French(localised) ...
0
votes
1answer
38 views

How to identify the status of a toggle button?

I have some thing like there is a toggle button of having "Show" and "Hide" as values, I want to know the status of the button before i am going to perform some action on this toggle button. The code ...
0
votes
1answer
28 views

TypeError: Error when calling the metaclass bases module.__init__() takes at most 2 arguments (3 given)

I'm ne to coding and python. Not sure where exactly I should be looking to fix this error. from UIMap import tomcat8LoginPage, ...
1
vote
1answer
47 views

How to use Python/Webdriver to go through multiple URLs and take screenshots using loops? [closed]

I want to use Python/Webdriver to run through many client websites (and subpages within those websites) and take screenshots of each page. Currently, I have this working, but all clients are in their ...
0
votes
0answers
18 views

Testng-emailable report.html-doesnt sends the test results of the latest executed testcase

Running several testcases and at the end of each testcase, i am emailing the Testng-emailable report.html file using JAVAMAIL API.Consider an example.Executed TestCases1 and mail was sent successful. ...
2
votes
1answer
62 views

How do I create a loop within my selenium python script to select every option within a dropdown menu

Im new to python, or coding for that matter... Currently I have a python script to select one option within the dropdown menu, but I would like my script to repeat each time and select the next ...
0
votes
2answers
57 views

How to use Xpath 'contains()' function to locate a Web element in Selenium Webdriver?

I am a beginner in learning Selenium WebDriver and XPath. I am trying to get the "<td>" Element of the Nested Table which Contains string '7-8-9.' Following is the HTML page code: <!DOCTYPE ...
-1
votes
2answers
74 views

WEB DRIVER SELENIUM 2.0.8 [closed]

I need help, I read about in selenium WebDriver wait forever until the website loads but how do I do this ?. I exported my java test but do not understand how to use that option to wait until the page ...
0
votes
1answer
47 views

Selenium WebDriver Code for Adding a person in people Soft

I am new to Selenium WebDriver. 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 Date ...
2
votes
2answers
97 views

How do I work with dropdowns in Selenium Webdriver?

This is a canonical question, intended to provide a comprehensive answer to many related questions I understand the basics of working with Selenium Webdriver; I can navigate to pages, click buttons, ...
6
votes
5answers
1k views

Is writing unit-tests difficult for me as a QA-engineer?

I currently work as a QA-engineer. Work a lot with java, selenium and test-automation. But, unit-tests are something the developers have been doing and something that I fear. Is it difficult? Do you ...
0
votes
0answers
77 views

Is it Swipe method supporting in android appium version 1.3.4?

I have tried implementing the swipe method for android devices, but this method is not working in Appium 1.3.4. Below is the code I have written: public void swipe() { JavascriptExecutor js = ...
0
votes
0answers
21 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
1answer
46 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 ...
0
votes
2answers
43 views

Not getting all links from page

I am trying to get all links from page but not getting all links. I am using selenium web driver. My code is below : public static void main(String[] args){ WebDriver driver = new ...
0
votes
1answer
34 views

Searching dropdown contents for string

I have a simple solution to search for a string within a dropdown menu, but I would like to improve the code so it allows more options, preferable storing each option as a separate entry in a list or ...
0
votes
1answer
56 views

Webdriver -> how to check something in txt file open in firefox?

My problem: 1) open http://www.webscorer.com/resources/templatestart using firefox 2) click on txt file 3) using autoIt on dialog box I check 'open in firefox' 4) txt file opens in new firefox ...
0
votes
1answer
123 views

How to run Selenium WebDriver java/testNG script with Windows Safari browser?

I know how to run test script in chrome and firefox. Please help me how to run my Selenium WebDriver java/testNG script in windows safari browser.
0
votes
4answers
93 views

Selenium: Unable to automate file upload

Can someone please help me in automating file upload on this page- https://www.designerexchange.com/index.php/sell/quote I tried everything, but the file upload is very dynamic.
0
votes
2answers
268 views

Selecting an item of a drop-down menu with Splinter lib (Python)

I am looking for a way to select an item in a drop-down menu in python with Splinter (very similar to selenium I guess) : <li class="option1" rel="1158"> Option 1</li> <li ...
0
votes
3answers
272 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
1answer
253 views

Using Allure framework with Selenium webdriver tests for better reporting.

I am using Selenium webdriver for automation. I have around 200 scripts ready and now i need a good reporting tool to generate reports. I recently heard about Allure framework, which is an open source ...
0
votes
1answer
204 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 ...
1
vote
2answers
34 views

Order in which options are returned by getOptions() in dropdown box(Select Class) in Selenium WebDriver?

When we get options of a dropdown in Selenium Webdriver the following way Select dropdown = new Select(driver.findElement(By.id(dropDownId))); List<WebElement> options = ...
0
votes
1answer
77 views

How to output result of Javascript execution to console?

I was wondering if anyone could help me find a way to output to the Eclipse console the results returned from executing a Javascript ? These are the steps I manually perform (that I would like to ...
3
votes
2answers
667 views

IE not executing test case properly in selenium webdriver

I am running test cases on firefox and chrome browsers, it worked fine for me using selenium webdriver.But when it comes to using IE versions(9-11), i am getting below mentioned error messages : ...
0
votes
2answers
51 views

Working of pageloadTimeout in selenium webdriver?

How does pageload timeout in selenium webdriver work? Once set using driver.manage().timeouts().pageLoadTimeout() what is lifetime of the timeout?
1
vote
1answer
52 views

Facebook updating profile picture using selenium webdriver

Using Selenium WebDriver I'm not able to click on update profile picture in Facebook. The html snippet is: <div class="_156p">Update Profile Picture</div> How do I locate the element?
1
vote
1answer
85 views

A test case needs 5 mins of wait. During these 5 mins I want to run other test cases

A test case needs 5 mins of wait. During these 5 mins I want to run other test cases. After 5 mins I want to check the necessary condition of 1st test case which is on hold for last 5 mins. How to ...
1
vote
0answers
106 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 ...
0
votes
2answers
50 views

I can't close Fancybox using selenium webdriver

I have a problem closing a Fancybox using selenium Webdriver. on the fancy-box is a big "X" located for closing it[http://tinypic.com/r/2w3xq1f/8]. this is the source code of the "X" closing ...
0
votes
1answer
170 views

Is it possible to use Selenium's RemoteWebDriver and Appium's AppiumDriver in parallel?

I tried asking this on StackOverflow but unfortunately I couldn't find a solution to this there. Then I learned about SQA StackExchange so I thought I'd try here too. I'm trying to write some test ...
1
vote
1answer
297 views

How to clear localStorage using selenium and webdriver

I want to call localStorage.clear() before running a group of specific tests but the thing is I don't know how. I can see CLEAR_LOCAL_STORAGE variable mentioned here but still failing to understand ...
0
votes
1answer
79 views

Selenium WebDriver Stops when Window goes Out of Focus?

I am running a Selenium WebDriver Script in java to read excel file and write data in a Web application. I am instantiating a Firefox Webdriver. The problem is that Script runs fine, but when test ...
0
votes
0answers
93 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) ...
1
vote
1answer
104 views

how can i get all the dropdown values in a list

I want all the options which are there in a dropdown .I am using selenium + javascript to write the testcases Please let me know how to get all the options from the dropdown i know in java we can ...
0
votes
2answers
62 views

java selenium - ArrayIndexOutofBoundsException

I was wondering if anyone could help me out with this exception I've been getting. I have a custom class/object named MindsparkPartnerCode with two variables named ieFFCode & chromeCode. I ...
2
votes
3answers
1k views

How to find element using contains in xpath

can anyone please help me how to use contains in my xpath? My xpath changes all the time when users are added, so I can't find element using xpath. This is my xpath: ...
1
vote
1answer
125 views

Where does the “helper” method get placed within a test script?

I'm new to automation, and programming, for the most part. I have a test script where I have to verify the presence of certain elements within a page I am testing. At the moment, I have multiple ...
0
votes
0answers
70 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
1answer
141 views

TimeOutException when trying to identify Dropdown Element in last iteration of For-Loop

I got stuck in for loop as the automation code is entering a loop that has few actions to be done like this: for (i = 0; i <= 2; i++) { // if(i==2)break; ...
1
vote
5answers
117 views

Selenium Webdriver get() shows intermittent TimeoutExceptions - how do I proceed?

I'm using Selenium Webdriver for testing a Django/Python based web application. I use both, the phantomjs and firefox drivers. We use django's LiveServerTest test case, which basically starts up a ...
2
votes
2answers
75 views

Why does WebDriver click an unrelated button in the wrong frame?

I have, in part, the following html structure: [other menu buttons] <a class="yuimenubaritemlabel yuimenubaritemlabel-hassubmenu" onclick="javascript:navigateTo('[redacted]');">ORDER ...
0
votes
1answer
118 views

Doesn't work Keys.CONTROL in WebDriver

help me please, i have a WebDriver script: package AdvancedInteraction; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import ...
0
votes
1answer
88 views

how to pick a date from a calendar?

I have to select a date from a calendar. There is a icon to activate the calendar. when I click on that icon calendar popup appears on the screen but I am not able to select the date from the ...
1
vote
1answer
59 views

Test how email looks in gmail and yahoo and other possbile email clients

I am looking for suggestions from the community to solve below mentioned problem statment. Problem: My use case is to check how email looks in gmail,yahoo and even in mobile devices. Outlook and ...