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

0
votes
0answers
14 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
31 views

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

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
18 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
40 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
54 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
96 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 ...
0
votes
1answer
39 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
18 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
47 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
0answers
46 views

What are the points that are covered in planning phase of automation Testing? [closed]

As a Automation tester, What are the points that are covered in initial/planning phase of automation Testing?
0
votes
1answer
33 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
2answers
43 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 ...
3
votes
1answer
79 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
31 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
52 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
21 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
102 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
57 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
46 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
42 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
22 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
64 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
55 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
53 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
49 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
105 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
75 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
148 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
215 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
233 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
79 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
67 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
62 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" ...
0
votes
1answer
77 views

Need help with getting list of items in Page factory, c#

I am new to Page factory model - I need number of elements in list, I am trying in the following way: **[FindsBy(How = How.XPath, Using = "//*[@id='ABC']/div")] public List<IWebElement> ...
0
votes
0answers
51 views

Division not appended on click event in phantomjs

On clicking the link: <a href="#">xxx</a> the below div should be appended to the webpage <div class="desc cloned"> <div class="wrap"> ...
2
votes
2answers
47 views

Benefits of @FindBy annotations

I have recently come across @FindBy as a method of locating elements within webdriver. What are the benefits or disadvantages of this approach compared with the to more common approach of using ...
0
votes
4answers
108 views

Escape key for Safari using Selenium

I am using Selenium webdriver (Java) and ran into a problem. I made the method, public void escape() { Actions action = new Actions(driver); ...
1
vote
0answers
51 views

Is it possible to automate tests on an embedded WebKit browser on Mac OS X?

Is it possible to automate the tests on a WebKit/WebView browser that is embedded in a Mac OS X desktop application, preferably using Selenium or some Mac-based tool like AppleScript or ...
0
votes
3answers
563 views

How to handle file upload and download using Robot Class?

I'm trying to build a framework using Selenium. There is a scenario where I need to download a file, and there is another where I need to upload one. I've gone through the option in AutoIt, but it ...
4
votes
2answers
2k views

How to minimize the browser window which was launched via Selenium Webdriver?

How can I minimize the browser window which has been launched via Selenium Webdriver? I see that there is a method to maximize (documentation), but I cannot find the converse for minimize. I have ...
0
votes
0answers
109 views

How to select few text lines using Robot Framework?

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application ( in .txt format ). One of my test cases involves to select few lines of text from ...
1
vote
1answer
74 views

Responsive UI tools for automation testing with C# selenium [closed]

We are moving our applications to responsive UI [C#]. Please suggest how best to use automated testing tools [Selenium] on a responsive UI.
1
vote
0answers
92 views

Handling different input fields using Robot Framework

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application (I am writing test cases in .txt format) I am having a problem on handling two ...
2
votes
3answers
540 views

how to find the css style attribute of a particular html element using Robot Framework?

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application. One of my test cases involves checking the CSS style attribute of an HTML tag. Is ...
3
votes
4answers
175 views

How much SQL knowledge do I need to learn Selenium Testing

I have just started learning Selenium. I'd like to know how much knowledge of SQL I should have in order to be able to learn Selenium.
1
vote
1answer
363 views

How to select from drop-down list in selenium c# by specific attribute value?

<ul class="options"> <li data-raw-value="smt-b1bbdd96-f135-48ae-8744-e920942dd7a3" class="selected" data-sys-status="running">3. LIELA LEGAL SISTĒMA ( EN - LV )</li> I want to ...
1
vote
2answers
458 views

How to get no. of elements with particular 'id' using robot framework?

I am writing an automation test script for our web application using Robot framework and Selenium2Library. One of my test case involves the following scenario. I have to run a particular test case ...
2
votes
2answers
558 views

How to upload a csv file from local machine using robot framework script?

Is there any option in robot framework to upload a csv file ( or any kind of file ) from local machine ? Here is my testing scenario - While clicking on 'Upload file' button a new window will pop ...
3
votes
1answer
2k views

How to set a value for a variable in Robot framework test case?

Is there any option in Robot framework to set the value of a variable "TRUE" or "FALSE" depending upon a condition ? I want to run a keyword only if a condition is TRUE, i.e. a keyword should run ...
1
vote
2answers
64 views

My page takes long time to load so am not able to identify an element from the page.Please provide me a solution

driver.findElement(By.id("oPortalUser_LoginID")).sendKeys("xxxxx"); driver.findElement(By.id("oPortalUser_Password")).sendKeys("xx"); driver.findElement(By.id("xxx")).click(); After clicking on ...