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
1answer
17 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
0answers
13 views

Selenium Webdriver - Develop a script to pass a URL to browser in your phone

Need to develop a selenium script which can pick a URL from an excel sheet and should send it to browser which are present in android/iOS phones on a single click ?? Is it possible ? Can anyone ...
0
votes
0answers
27 views

Automate Outlook using Selenium Webdriver

Want to automate Outlook using Selenium Webdriver ? Is it possible and if yes then any links/docs that i can refer for this ??
0
votes
1answer
16 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 ...
0
votes
2answers
14 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
24 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
64 views

IE not executing test case properly in selenium webdriver

I am running test cases on firefox and chrome browser versions its worked almost fine for me using selenium webdriver.But when it comes to use IE versions(9-11) i am getting below kind of error ...
0
votes
2answers
17 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?
0
votes
1answer
24 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?
0
votes
1answer
57 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
23 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
17 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
31 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 ...
0
votes
1answer
38 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
30 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
31 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
55 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
35 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
115 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
90 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
48 views

got stuck in reusing the parameters value using testNG in selenium

I got stuck at one scenario where i want to get the values from the excel that contains 12 rows for four type of actions. i meant the first column of the every row on the sheet determines my methods ...
0
votes
0answers
51 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
73 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
78 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 ...
0
votes
2answers
45 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
49 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
66 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
54 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 ...
0
votes
0answers
35 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
1answer
93 views

How to use modify_headers extension for Firefox via Webdriver?

I'm trying to use modify_headers extension (because this feature will never be added to Webdriver) but without success. I use the following code: @profile = Selenium::WebDriver::Firefox::Profile.new ...
0
votes
2answers
161 views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
0
votes
3answers
117 views

Selenium (Java): Which IDE to use; Eclipse or Netbeans

For a new project i want to start automating tests using Selenium. I'm going with Java as the object that has to be tested is a Java application. In my company most people use either Netbeans or ...
0
votes
2answers
95 views

Selenium, cannot find button to click

I got stuck to write the code in WebDriver. I have the code below : <button class="btn" onclick="javascript:return PopulateInvestor('hdnInvestorId', 'txtInvestorName', 'txtInvestorEmail', '', '', ...
0
votes
0answers
40 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
3answers
87 views

Loading page generates exception 'Timed out waiting for page load'

I'm navigating to a webpage using Firefox driver. The page is loaded correctly but I'm getting this exception and the test crashes Timed out waiting for page load I've tried to add some ...
0
votes
1answer
85 views

automating selenium 101

I'm just getting started with selenium: package selenium; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; import org.openqa.selenium.WebDriver; import ...
3
votes
2answers
165 views

Cloud Based Automation Testing with Selenium WebDriver - Java

I am beginner in selenium webdriver (java), and wanted to know whether selenium webdriver can be used in cloud based application testing or not, if yes how to setup it (Searched over the net but ...
3
votes
2answers
156 views

What kind of test cases we can not automate in selenium webdriver - java

I want to know what kind of test cases we can not automate using selenium webdriver. I do not want to use any 3rd party tool (Autoit, etc..).
3
votes
2answers
158 views

key points for choosing a framework in selenium webdriver - Java

My query is related to this Choosing framework type for selenium RC/Webdriver I am a beginner in Selenium and want to know how to select or choose a framework in Selenium Webdriver. What are the key ...
0
votes
1answer
45 views

selenium click stop working after several iteration

I have a test that clicks on a preview link > opens up a window and I do some sort of test in that newly open window. I then close that window and click on the preview link again and repeat. Let's ...
1
vote
2answers
110 views

Disable a pop up rendered in FF and not with IE

when testing with Selenium Webdriver, I'm getting an advertising pop up window with Firefox and not with IE. Actually this pop up is preventing me from doing many other tasks. Is there a way to ...
0
votes
0answers
20 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 ...
2
votes
2answers
123 views

How to ignore/accept/avoid SSLHandshakeException while trying to check for broken links?

I'm trying to verify if a link is throwing response code other than 200. Link that I'm trying to verify is https:// and after process has run, it throws this error -- ...
0
votes
3answers
118 views

Selenium: dealing with intermittent cases of element not found

Sometimes it works and sometimes it doesn't. I've tried implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); I've tried explicit wait: ...
2
votes
2answers
223 views

How and where to store dynamic result/data using webdriver java

I want to know "How and where to store dynamic (Search results) result/data", I am getting the results and not sure what to do next. Also, after saving these results I want to use this in another ...
0
votes
2answers
84 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When i click on the select box and then further use click() on the value item , it works fine. but when i use Keys.ARROW_DOWN its displays the ...
1
vote
4answers
118 views

How to work with changing element id in the html code

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
1
vote
2answers
1k views

want to scroll down page/form using selenium webdriver

I want to scroll down a page that is coming inside a form, not in the main page. I tried this code JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", ...
-1
votes
1answer
73 views

want to capture data after the search action using selenium webdriver

I am working on a erp application where I have to click on a 'search' button after which it will give me list of data . I want to automate that using webdriver. The search tab is empty before the ...
1
vote
2answers
184 views

How to verify whether selected item is exist in another page? (Ecommerce application)

I am trying to verify selected item is exists in another (Cart/Shopping Bag) page, for EX: I am buying one/many items from application and then I will move all the items to Cart/Shopping Bag, here I ...