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
4 votes
5 answers
5k 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 (driver....
iAutomate's user avatar
  • 349
3 votes
2 answers
447 views

Unable to locate element on Win-7 Safari browser using Selenium

I have written Selenium script & it sucessfully executed on FF, chrome & IE. But when I tried it on Safari it gives error while clicking on button. I used Selenium-java-2.52 version jars & ...
Bharat Mane's user avatar
  • 6,785
2 votes
1 answer
1k 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 ...
user1429322's user avatar
3 votes
2 answers
2k views

How to run multiple Test cases on different browsers in TestNG with Java

I'm new at TestNG. So, I want to know more details about how to run multiple test-cases on different browsers. Which Framework model should I use in my project? So that each & every part of my ...
Bharat Mane's user avatar
  • 6,785
1 vote
2 answers
485 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 ...
Randy Lei's user avatar
5 votes
2 answers
32k views

How to take ScreenShot & save it with different filenames by using Selenium & Java? [closed]

I have created screenShot() method to take the screenshot of the web page. When I used this method in my code first time it will capture the screen and it will save the image with image1 name. When I ...
Bharat Mane's user avatar
  • 6,785
0 votes
3 answers
4k views

How to run failed test cases using TestNG?

I created jar when I run on command prompt I am able to see result, what I want is "I need to run failed test cases if there is any" public class DemoProjectClass { public static void main(...
sameer joshi's user avatar
2 votes
1 answer
139 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.
Zoran's user avatar
  • 21
1 vote
1 answer
971 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 ...
severalservals's user avatar
0 votes
2 answers
8k 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 ...
sameer joshi's user avatar
4 votes
0 answers
3k views

Jenkins Build Is Hanging

We are using Jenkins for continuous integration. I have already created a Jenkins job for running all my robot framework automation test scripts & Everything was absolutely working fine. But now,...
Arun Ramachandran's user avatar
2 votes
2 answers
8k views

How to press CONTROL key & Select multiple values 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 ...
Ami's user avatar
  • 21
1 vote
1 answer
488 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?
Jurik's user avatar
  • 157
2 votes
4 answers
7k views

Assert in TestNG (Actual int value, Expected int value)

Is there anyway to assert that, actual int value = expected int value not equal to 0 Something like, Assert.assertEquals(length, 0);
ilm's user avatar
  • 386
0 votes
2 answers
1k 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 "...
Andrejs's user avatar
  • 175
2 votes
1 answer
3k 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 ...
ian's user avatar
  • 108
1 vote
3 answers
4k views

Handling Popup using selenium - how to switch back on parent window from child?

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: driver....
Saurav's user avatar
  • 11
5 votes
4 answers
4k views

How to generate good locators for elements in Web pages?

This site contains many questions that are about finding the right locator expression (XPath, CSS, etc) for an object in WebPage or about troubleshooting problems related in invalid or dynamic ...
dzieciou's user avatar
  • 10.5k
3 votes
2 answers
7k 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 ...
BV360's user avatar
  • 31
1 vote
1 answer
6k 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; ...
Tharindu Kandegedara's user avatar
1 vote
2 answers
816 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 ...
Tharindu Kandegedara's user avatar
1 vote
2 answers
3k 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.
Surya's user avatar
  • 15
3 votes
2 answers
8k 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 ...
seleniumappiumnewbie's user avatar
6 votes
4 answers
18k 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 ...
Rupa's user avatar
  • 61
0 votes
0 answers
364 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 ...
JustARandomGuy's user avatar
1 vote
1 answer
1k 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 ...
Hassan's user avatar
  • 327
0 votes
3 answers
1k 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" ...
PRasd's user avatar
  • 87
1 vote
1 answer
729 views

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

I'm new to Page factory model - I need number of elements in list, I'm trying in the following way: **[FindsBy(How = How.XPath, Using = "//*[@id='ABC']/div")] public List<IWebElement> ...
user3752333's user avatar
1 vote
2 answers
405 views

Division not appended on click event in phantomjs [closed]

On clicking the link: <a href="#">xxx</a> the below div should be appended to the webpage <div class="desc cloned"> <div class="wrap"> ...
Rita Agarwal's user avatar
2 votes
2 answers
1k 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 ...
ECiurleo's user avatar
  • 2,043
3 votes
6 answers
20k views

Unable to enter the text in a text box

I am trying to enter the text in a textbox, but I am getting an error as follows org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only Anybody can ...
Bunny's user avatar
  • 131
2 votes
4 answers
4k 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); action.sendKeys(Keys.ESCAPE).build()...
Robben's user avatar
  • 1,036
4 votes
2 answers
599 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 ...
maxx777's user avatar
  • 141
3 votes
3 answers
25k 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 ...
kanayikkaran's user avatar
11 votes
6 answers
55k 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 ...
kanayikkaran's user avatar
1 vote
2 answers
10k 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 ...
Arun Ramachandran's user avatar
1 vote
1 answer
605 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.
Kiran's user avatar
  • 11
5 votes
1 answer
9k 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 ...
Arun Ramachandran's user avatar
2 votes
3 answers
17k 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 ...
Arun Ramachandran's user avatar
3 votes
4 answers
2k 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.
Sneha 's user avatar
  • 41
2 votes
1 answer
4k 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 ...
Edgars Karķis's user avatar
1 vote
2 answers
19k 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 ...
Arun Ramachandran's user avatar
2 votes
2 answers
14k 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 ...
Arun Ramachandran's user avatar
4 votes
1 answer
40k 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 ...
Arun Ramachandran's user avatar
1 vote
2 answers
1k 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 ...
kripindas's user avatar
  • 175
3 votes
9 answers
1k views

What is Software Test Automation Framework?

I am a beginner Software tester. I have started to learn test automation of web apps using selenium webdriver in java. Till now I can just automate simple login functionality. I want to know all about ...
tester_23's user avatar
1 vote
2 answers
2k views

Solution on ElementNotVisibleException in Selenium

I need to click on a link which displays a popup. But, I'm receiving the following exception: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be ...
Lakshmi Priya's user avatar
7 votes
2 answers
7k views

How do I split my PageObject Model classes?

My page object model class is getting rather long. Should I create a different class with the same name as the page object model with a 2 added at the end. Or does this go against the page object ...
Robben's user avatar
  • 1,036
3 votes
1 answer
583 views

How do I put a MySQL fixture in a PHPUnit driving a Selenium2?

I have a Symfony2 web project using PHPUnit for the unit tests. Recently I added functional tests with the package phpunit/phpunit-selenium. I have added tests to do a login, then to create an item ...
Xavi Montero's user avatar
2 votes
1 answer
1k views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. driver....
kittudk's user avatar
  • 153

1 2 3
4
5
11