Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

learn more… | top users | synonyms

1
vote
1answer
37 views

Unable to scroll down to bottom of div with data loading dynamically

<div id="findingTblBody" class="tablebody" infinite-scroll-distance="2" infinite-scroll="loadMoreData()" style="width: 819px;"> I want to scroll to bottom of div mentioned above. I am trying ...
0
votes
1answer
27 views

Is use of priority in TestNG a good approach?

I'm assigning priority to each test method in a specific class under my automation project. My senior reviewed the script I wrote and mentioned to me that do not use priority instead use the xml to ...
0
votes
1answer
25 views

How to validate if PDF is loaded or not in Selenium Webdriver?

I have a link in Website which will redirect to PDF document after clicking I would like to check if PDF is loaded in the browser or not using selenium I do not want to compare the text/content in ...
0
votes
0answers
14 views

The Automated test can be executed paralleled by Jenkins, how to make a standalone file for it

I am using the maven-surefire-plugin with selenium grid and the test can be executed by Jenkins paralleled. I have using the multi-thread method in the code but that parallel can only be executed from ...
1
vote
3answers
93 views

How can we generate unique distinct users for parallel tests with selenium?

How can we generate unique distinct users for parallel tests with selenium WebDriver and java or Javascript. Suppose, in google create an account action I have to pass firstname, lastname, username ...
0
votes
5answers
70 views

How to get entered text from textbox when value is empty in selenium using java?

Just I am trying to get entered text from the text field when value is empty. Below is my HTML: <input type="text" style="width: 203px" value="" maxlength="32" name="firstName"/> I tried ...
1
vote
2answers
106 views

Getting 'org.openqa.selenium.NoSuchElementException' - how to fix?

I'm getting this error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element Why am I getting this WebDriver exception and how can I fix it?
2
votes
3answers
64 views

What do I need to do if dropdown takes more time to populate 1st element from dropdown list?

What do I need to do if drop down take time to populate 1st element from drop down list? Select Cdropdown = new Select(driver.findElement(By.xpath("//select[@id='ClientId']"))); ...
2
votes
2answers
67 views

What is the difference between jUnit & TestNG?

I want to know difference between Junit & TestNG. Which one is useful for Tester?
0
votes
1answer
24 views

Anyone find value migrating to NightWatch from Python Selenium API?

My dilemma, I have tons of tests and experience on the Python API to Selenium and webdriver. But, my dev team is big time javascript fans who think everything should be built under node/js. I want to ...
0
votes
2answers
38 views

How to select li element in selenium

I want to select "India (+91)" from dropdown Can anyone help me with this?
0
votes
3answers
38 views

xpath - element is not located even when I construct the xpath

element is not found //HTML Code <input type="text" maxlength="61" style="width:185px;" value="" name="name73652d80" onblur="fieldTrack(this); "/> input type="text" onblur="fieldTrack(this);" ...
0
votes
1answer
34 views

Suppose there are five Browser windows opened, how to find the third one and close it through web driver?

Suppose there are five Browser windows opened, how to find the third one and close it through web driver? Please I'm request you to all of you don't consider this question as a opinion based. I have ...
0
votes
0answers
37 views

How to read Data from XML file and compare the Data with Database Tables as an output using Selenium?

I have to test more than 250 feeds which contains of listing data. Hence, the goal is Download feeds file from existing legacy system which is in XML format and then compare the values with ...
1
vote
2answers
45 views

How to locate xpath for given tag?

I am trying to automate one of site and the below are the html code for same <a href="http://register.rediff.com/register/register.php?FormName=user_details">Create a Rediffmail ...
2
votes
1answer
76 views

What is the procedure to start Safari browser?

I'm new & started working on selenium from last month. I was successfully running script on FF & chrome. but when I started to run same script on Win safari It gives browser initilization ...
0
votes
1answer
43 views

How to use pagefactory in POM? why we pass parameters in pagefactory? [duplicate]

While developing a script using Page Object Model, we use PageFactory.initElements(driver,this) to initialize the webelement. How this is done and why we pass parameters 'driver' and 'this' ?
1
vote
0answers
27 views

How to sort Calendar dates using Selenium?

I have a situation with automation testing. The situation is, I am adding files with different dates as filename and need to keep those files in descending order and the files with no date goes in ...
4
votes
2answers
38 views

“Element is not currently visible and so may not be interacted with” when locating element by CssSelector/helptext [closed]

I faced an issue with locating the element. Currently it's impossible to locate it by CssSelector/helptext, but it's located by CssSelector/Id without issues Here's the element <span ...
0
votes
0answers
21 views

Store result file dynamically

I'm using selenium selenium-server-standalone-2.53.0.jar file. java -jar selenium-server-standalone-2.53.0.jar -userExtensions user-extensions.js -trustAllSSLCertificates -htmlsuite "*firefox" ...
1
vote
2answers
46 views

Software to Build a Selenium POM

I have a basic script that parses through HTML and creates a basic POM based on Inputs, Selects etc. It does a decent job but I was curious if there is any 'professional' or popularly used pieces that ...
0
votes
3answers
88 views

How To Handle Dynamic Changing IDs In XPath?

Example : //div[@id='post-body-3647323225296998740']/div[1]/form[1]/input[1] In this XPath id "3647323225296998740" Is changing every time when reloading the page. How to handle this type of ...
1
vote
7answers
145 views

How to verify images in selenium WebDriver?

WebDriver does not provide direct any function to image verification, but we can verify images by taking two screen shots of whole web page using “TakesScreenshot” webdriver function, one at script ...
-1
votes
2answers
46 views

How to find the element for below code in WebDriver?

I am using Selenium Webdriver in C#. I am trying to find the element for below given Angular code. "<div class="ViewMenu" ng-class="{'selectedViewMenu':SearchObj.param.View=='Videos'}" ...
0
votes
0answers
28 views

driver.getWindowHandle() doesn't work after multiple iterations

driver.getWindowHandle() object is not returning a value when I execute the script multiple times. OS: Win 7 32 Bit IE : 11 Selenium: 2.53.0 IEDriverServer: 2.53.0 First time it is returning ...
1
vote
2answers
51 views

How to handle dynamically changing id in dropdown and if I select class then it shows three matching nodes

html snippet: <div id="isc_PT" class="selectItemText" tabindex="5637" style="width:123px;height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" $9a="$9d" $89="isc_SelectItem_8" ...
0
votes
1answer
50 views

Is Parallel Testing possible in Cucumber with TestNG?

I am trying to implement Cucumber-JVM with testNG and I need to execute the scripts in parallel with multiple browsers. Is Parallel Testing possible in Cucumber? If Yes, Can any one help me on this?
1
vote
3answers
52 views

Same button is on 2 pages,but on one of the page its not clickable by selenium

The button is visible on UI and isdisplayed() is telling its displaying, but only the problem is, selenium is not clicking this button. The same button is placed on 2 pages, on first page its ...
1
vote
3answers
159 views

Unable to select text from dropdown - Gmail.com Month Dropdown

Im also facing the same error. Unable to select Birthday, Gender & Location in gmail signup page. I'm using Selenium Webdriver. Please find the below code for birthday. new Select ...
3
votes
1answer
96 views

Architecture design for UI automation using selenium Web Driver

I am new to both Automation and selenium. I am planning to write an automated tests for the UI using selenium web drivers in the py.test. I would like to know what is the best architecture (not the ...
1
vote
2answers
32 views

Selenium IDE recorded script issue : element not visible [closed]

I used Selenium IDE to record some actions on a webpage, reply on firefox works fine if I slow down the run. Once I exported it as a python 2 script, run with chrome then it fails. Here is the ...
1
vote
0answers
53 views

Page factory performance

Does page factory affect on performance for test execution when we have a lot of elements with @FindBy? We use Java as a programming language.
1
vote
1answer
26 views

Why can't I use jQuery selectors from WebDriver's CssSelector if jQuery is loaded on the page I'm testing?

I'm testing a page on which jQuery is loaded, using WebDriver and ChromeDriver. I'd like to use some jQuery selectors, particularly the :contains() pseudo-selector for finding a node based on the text ...
0
votes
2answers
104 views

How to Create “Runnable jar” file for deployment? [closed]

i have one selenium project, i need to deploy as jar file how to do that? i used following tools/api's Selenium Web driver+java poi JXL TestNG AUT Reporter i don't have Main Method. Runnable jar ...
1
vote
0answers
69 views

Jenkins Build Is Hanging

We are using jenkins for the continuous integration. I have already created a jenkins job for running all my robot framework automation test scripts & Everything was absolutely working fine. But ...
0
votes
1answer
68 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 ...
1
vote
1answer
46 views

How to setup Behat for Magento on Mac with MAMP?

We have a Magento shop and want BDD-tests for our system - locally and later on server side. How can I setup an Behat environment on my mac with MAMP?
0
votes
0answers
25 views

Selenium to retrieve the title text under SVG

everybody. Just a tough thing that using Webdriver to get title text under SVG section, so far, I get "" text. please see below <g class="v-axis-label-wrapper"> <text x="72.65" y="6" ...
0
votes
2answers
70 views

Selecting element by xPath vs. class vs. byId

Selenium WebDriver provides numerous ways to select an element as shown in googledocs (under "implements interfaces"): by class name by id by xpath etc. Is there one that is more "resistant" ...
1
vote
1answer
58 views

How to test 2-factor authentication (i.e. confirmation code) using selenium [closed]

How can I automate Confirmation Code using Selenium ? Update: Our web application ask for mobile number and pin for login and sends confirmation code in sms, which is then entered by user on Confirm ...
0
votes
3answers
59 views

Handling A Popup

So I have to upload a document, and the popup for file explorer loads and my code can find the document I need, but how do I then switch back to my original browser? Here is the code: ...
0
votes
0answers
56 views

AjaxElementLocatorFactory = Implicit or Explicit

I'm looking for solution in page factory to wait. I don't want to use something like Implicit wait, but something like Explicit. I read about AjaxElementLocatorFactory, but I'm not sure that it ...
0
votes
1answer
122 views

Console prompts error : Compound class names not permitted

The thing what I wanted to do was, write java code for automate the sending an email via gmail. When I try to locate element of send button it throws following errors. The code I used, is like this; ...
0
votes
2answers
81 views

Cannot Locate the Link in Selenium Web Driver

The thing what I wanted to do is Automate Gmail Login page on Firefox by using Selenium Web Driver. I was blocked near the locating link of gmail. I tried the correct answer of This. but it gives this ...
1
vote
2answers
188 views

How to skip failed test cases using TestNG

How to Skip the failed test cases and to execute the remaining test cases when using Selenium, Java and TestNG.
1
vote
2answers
340 views

Selenium Java WebDriver Can not Find Element with xpath or cssSelector

I can't find this element using selenium java webdriver. I have a before class method that loads the firefox driver and set the WebDriverWait. Then I have a test method to look for the elements with ...
4
votes
1answer
342 views

How can i automate using selenium to check if an element is present in viewport

My scenario is to make sure that my search bar is not sticky. For this I am scrolling to middle of the page. Now I need to check that my search bar is not visible in my viewport. isDisplayed method is ...
0
votes
0answers
82 views

Selenium Grid2 and Sikuli

Has anyone tried integrating Sikuli to Selenium Grid architecture ? I have read many articles online but unfortunately couldn't reach to a solution. To briefly explain, my scripts are equipped with ...
1
vote
1answer
74 views

Jenkins build failing for a test case when it have SendKeys() function

if I run my test suite (Selenium WebDriver) with test cases giving text output only using System.out.println("some text"); Build status is successful using Jenkins But whenever it comes to the ...
0
votes
2answers
63 views

how do i use list for selenium web driver in java

how do i use list for selenium web driver in java I need to select id which are continuously changing, and one id is in one row. need to select id from each Edit : <tr id="tr-132885-id" ...