Questions tagged [selenium2]

Use for questions about Selenium 2. 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.

Filter by
Sorted by
Tagged with
5 votes
4 answers
4k views

How to get multiple login instances working in Internet Explorer?

Am working on a banking application. Our requirement is to execute tests in parallel in one system. A) Below is how our application responds to selenium parallel execution :- Does not allow ...
TechDog's user avatar
  • 181
3 votes
1 answer
1k views

How to get the x, y axis location of the view itself in selenium [closed]

How to get the x, y-axis location of the view itself in selenium? I know I can get the position of a specific element. But I can't find a way to get the coordinate of the window's view itself. So I ...
Ezeewei's user avatar
  • 131
0 votes
5 answers
9k views

How to close pop up in Selenium web driver?

Please help me out for this problem. I tried to close this Pop-up page with Selenium, but not able to do it. HTML code <div class="popupsignup-disp"> <div class="popupsignup-cntbox"> ...
Mohit Jaiswal's user avatar
1 vote
0 answers
422 views

how to use javascript in selenium for get data from excel

I am using selenium for data entry there are some drop downs in my web page I use dropDown.selectByVisibleText(input.getCellData(i, 0)); for every one but after first drop down it is not working ...
mr.error's user avatar
0 votes
1 answer
90 views

Selenium Webdriver url related

I want to open any url in firefox browser but it does not open. what should I do? I installed firefox 47. I put in my code here. public class Baseclass { public static WebDriver driver; public ...
p.deepa's user avatar
6 votes
2 answers
3k views

Extending or passing the driver in page objects?

I have 2 different ways of working with the driver in the page object model: Creating the driver in all the pages and passing it from one class to another. You have an example here. Extending the ...
mikel's user avatar
  • 61
0 votes
2 answers
132 views

What exception I will get If I use UnSelectall() on Normal Select element? [closed]

In Selenium I am using UnSelectAll() on a normal select/Input element( Not multi select). What exception I can expect?
SQA_LEARN's user avatar
  • 435
5 votes
5 answers
43k views

How to handle Login pop up by using Selenium, which is used for login to applications?

Steps that I have to perform I have a website (www.xyz.com) I successfully opened it through Firefox. In the page, there is a google icon (image) which I am suppose to click After clicking the ...
shivali tak's user avatar
3 votes
0 answers
448 views

How to configure Selenium+GitHub+Jenkins [closed]

I was trying to configure Selenium+GitHub+Jenkins but unable to do it, I was able to configure selenium and Jenkins but not with GitHub. We need to build in same workspace where is my code if not, ...
Selenium's user avatar
  • 167
1 vote
1 answer
4k views

What are the recovery scenario for Selenium Framework? [closed]

How to handle recovery scenario in my framework. In this framework I want to create some methods which work after catching exception. So that I can easily come back on the normal stage from any of the ...
Shailendra Rathore's user avatar
1 vote
1 answer
143 views

Selenium RC : How to handle drop down list while automating?

How to handle the drop down by using selenium RC. While I am automating Gmail registration page the birthday section giving error
swagatika's user avatar
1 vote
1 answer
886 views

Select Window=Null equivalent in webdriver/java

While clicking the drop down, Selenium IDE records a selectWindow command as SelectWindow=null. What is the equivalent code in webdriver/java ? I tried driver.switchto.window("null"); but on trying it ...
Tester's user avatar
  • 11
2 votes
1 answer
400 views

Expecting results in boolean[True/False] but getting status as "None" - Why? How to resolve?

I execute javascript below and it must return True or False and it would do the Run Keyword If the statement is False but what in ${CheckboxStatus} is None, instead of Boolean value True or False. ...
David Eugenio's user avatar
0 votes
1 answer
49 views

Will android 5.0.1 sdk package work for android 5.0.4? [closed]

I have Android 5.0.4, so which Android SDK package do I need to Install? There are two Options available in Android SDK Manager ANDROID 5.1.1 ANDROID 5.0.1 My Device : 5.0.4
Sandeep's user avatar
  • 333
6 votes
4 answers
4k views

Unexpected WebDriverWait / FluentWait behaviour - throws Exceptions anyway

I am having some issues with the way the WebDriverWait and FluentWait is (not) working. First of all, the requirement: Checking for the visibility of an validation error after submitting a login ...
Christoph Zabinski's user avatar
1 vote
2 answers
2k views

How to Detect if Autoit script is failed or not in selenium (java)

I need to detect if current running autoit script is failed or not. I tried to wait for 1 min in the following code, if in this time 1st Autoit script doesn't complete then it will move on to 2nd ...
Sandeep's user avatar
  • 333
0 votes
2 answers
11k views

java + log4j : How to fix "No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies)"

Working with selenium + maven project in eclipse. I am facing below warnings: log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please ...
Narendra Chandratre's user avatar
0 votes
2 answers
71 views

How to configure css or xpath for below code

I need to configure xpath or css for selection under red border i.e a name contains "Patient List"
Mahesh's user avatar
  • 143
-1 votes
1 answer
611 views

Not able to find the element to click | Selenium Webdriver | Add New User Issue | Getting java.lang.nullpointerexception [closed]

package com.MainExecutionforWordpress; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import com.AD.Wordpress.Login....
tarun bajpai's user avatar
2 votes
1 answer
3k views

Selenium 2 Webdriver: Persistent cookie browser restart

I test a OAuth 2 Login page. It allows me to remember my login. This is done with a persistant cookie. Now I want to test if this cookie remains present after a browser restart which is its intent: .....
Lukas's user avatar
  • 121
5 votes
1 answer
12k views

Error in Maven project build-"Could not initialize class org.apache.maven.index.ArtifactInfo"

Hi All when I am trying to build or clean the Maven project I got below error can any help me ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'POM-...
Mahesh's user avatar
  • 143
4 votes
5 answers
107k views

Unable to locate element throwing a org.openqa.selenium.NoSuchElementException in TestNG

Am unable to click on element after executing a First test second test showing a org.openqa.selenium.NoSuchElementException . My code Here: public class snapooh { WebDriver driver; @BeforeTest ...
Jagannatha Mv's user avatar
3 votes
4 answers
198 views

selenium 2.0: Design pattern for projects which doesn't have so many pages

I have been POM design pattern with pagefactory from past ~ 4 years. In current project again I have implemented same pattern, but there are not so many pages infact majority of test cases work on 1 ...
paul's user avatar
  • 697
1 vote
0 answers
87 views

How to Verify link using dataprovider [closed]

I want to verify hyperlink which in under the red border using data provider method. print them 1) User can click on hyperlink 2) Using data provider print the text into the console.
Mahesh's user avatar
  • 143
3 votes
2 answers
4k views

What is the hierarchy to use for finding elements - ID, class, name, xpath?

What is the hierarchy to use 'find element' by ID, class, or xpath and so on. Which is preferred over which? For some elements class is being used - is that recommended?
Rajan's user avatar
  • 33
6 votes
1 answer
23k 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 the bottom of div mentioned above. I am ...
Pratiksha Jadhav's user avatar
0 votes
1 answer
791 views

Is use of priority in TestNG a good approach? [closed]

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 ...
Gooner4Life's user avatar
2 votes
1 answer
8k 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 ...
Ramya's user avatar
  • 33
3 votes
3 answers
5k views

Can we generate unique distinct users for parallel tests in selenium?

Can we generate unique distinct users for parallel tests in selenium WebDriver and java? Suppose, in google create an account action I want to pass firstname, Lastname, Username & Password for ...
Bharat Mane's user avatar
  • 6,785
5 votes
11 answers
122k 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 ...
Selenium's user avatar
  • 167
2 votes
2 answers
771 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?
Shyam D's user avatar
  • 45
3 votes
4 answers
11k 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']"))); Cdropdown....
Mahesh's user avatar
  • 143
0 votes
1 answer
5k views

Which Firefox version is more compatible with Selenium IDE and Firebug? [closed]

Firefox Browser compatibility with Selenium IDE and Firebug Plugins or addons.
user18287's user avatar
1 vote
1 answer
717 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 ...
Shane's user avatar
  • 111
1 vote
2 answers
68k views

How to select li element in selenium

I want to select "India (+91)" from dropdown Can anyone help me with this?
Mahesh's user avatar
  • 143
1 vote
3 answers
1k 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);" ...
Mahesh's user avatar
  • 143
3 votes
2 answers
3k views

How to find and close particular browser window from number of opened windows using Selenium?

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 ...
Bharat Mane's user avatar
  • 6,785
3 votes
2 answers
388 views

How to locate XPath for given tag? [closed]

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 account</a&...
Mahesh's user avatar
  • 143
2 votes
2 answers
2k views

Which Programming Language is more supportive to start with Selenium? [closed]

I am looking to start with selenium, so please suggest me which language is good for automation testing?
S P's user avatar
  • 21
3 votes
1 answer
3k 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 ...
Sophia's user avatar
  • 367
0 votes
1 answer
3k 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' ?
Deb's user avatar
  • 1
4 votes
2 answers
525 views

Firefox does not shows saved bookmarks, addons while launching?

When I am running software web application's tests In Firefox Browser using selenium WebDriver, It Is not showing me any bookmarks, addons, saved passwords etc in that browser. Have you observed this? ...
Bharat Mane's user avatar
  • 6,785
3 votes
2 answers
584 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 id="...
wrath1888's user avatar
1 vote
2 answers
121 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 ...
Paul Muir's user avatar
  • 3,272
10 votes
9 answers
85k views

How to verify two images using Selenium WebDriver? [duplicate]

Webdriver does not provide direct any function to image verification, but we can verify images by taking two screenshots of the whole web page using TakeScreenshot WebDriver function, one at script ...
Bharat Mane's user avatar
  • 6,785
-1 votes
3 answers
108 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'}" style="">...
Jayant Kharat's user avatar
1 vote
2 answers
1k 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" ...
Sushma Arun's user avatar
4 votes
2 answers
434 views

Are there any issues with Selenium v2.53 and Firefox v45.0.1?

I have a couple of tests, which I run them on windows and I have a successful run. But when I move to UBUNTU server with Xvfb, I faced problem with tests, some of them failed!! both cases I used: ...
Hana90's user avatar
  • 181
3 votes
1 answer
3k views

Is Parallel Testing possible in Cucumber with TestNG?

I am trying to implement Cucumber in my current project with TestNG and I need to execute my script parallely on multiple browsers. Is Parallel Testing possible in Cucumber? If Yes, Can any one ...
Bharat Mane's user avatar
  • 6,785
6 votes
2 answers
805 views

Are there any non-selenium based tools for Automation testing? [closed]

I'm aware of automation tools like- Selenium, Appium, Selendroid. Is there any other tool available in the market which is used for automation testing outside of the selenium group?
Bharat Mane's user avatar
  • 6,785

1 2
3
4 5
11