Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
2answers
445 views

TestNG.java.lang.NullPointerException running second @Test

It runs first test, but then I'm getting null pointer exception when running Edit Profile test. Not sure why. I globally declared public driver. Please help. Thanks package test; import java.util....
0
votes
2answers
67 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
246 views

unable to find element

I have the following code //import java.io.IOException; //import org.apache.bcel.generic.Select; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.By; ...
0
votes
2answers
4k views

Setting TestNG test case result as PASS/FAIL as per my requirement

I have one requirement, I need to read the test data from the excel sheet and after the test case execution I need to write in to excel sheet as PASS/Fail/ Skip. I have used TestNG framework,Below ...
0
votes
2answers
149 views

Selenium IDE - Captured screen shot comparision

I have two images - one is a screenshot of my application; the other is a reference image. How can I compare the two of them to determine if they are the same?
0
votes
2answers
579 views

Verifying URL while ignoring part of its string

I have a URL I am attempting to verify through my test, basically I click on the image of a product and it takes me to the item description page. At the end URL string for this items description page, ...
0
votes
1answer
1k views

How to connect node to hub that are in different networks

If I use case when hub and node are on the same network - here is how I do this: launch hub: java -jar selenium-server-standalone-2.45.0.jar -role hub -port 4444 launch node: java -jar selenium-...
0
votes
1answer
696 views

Python selenium - how can I loop a function to make 100 Copy accounts using different emails

How can I loop a different string into the email field, or a variable without actually having to make a list that consist of 100 different emails. For example is there a way i can send money@qa.test ...
0
votes
1answer
241 views

Access WebElement in selenium testng [closed]

having code like this, with WebElement inside of class @Test public void testTable() { WebElement simpleTable = driver.findElement(By.id("items")); simpleTable.click(); } how ...
0
votes
2answers
1k views

How to run Selenium WebDriver java/testNG script with Windows Safari browser?

I know how to run test script in chrome and firefox. Please help me how to run my Selenium WebDriver java/testNG script in windows safari browser.
0
votes
1answer
608 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; driver.manage()....
0
votes
3answers
1k 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
1answer
167 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 ...
0
votes
2answers
771 views

I want to select the value from the dropdown

I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. ...
0
votes
2answers
4k views

Can you use javascript with selenium webdriver?

I want to automate a website with selenium web driver using javascript. I am good at Junit(java) but not an expert in javascript. please can anyone help me rewrite this little code snippet in ...
0
votes
1answer
988 views

How to automate range values using web driver?

I have to test a price range bar implemented with a jQuery slider. Suppose the defined range is 100-10,000. I want web driver to slide the minimum value to 2000 and Maximum value to 8000. I thought of ...
0
votes
2answers
4k views

Selenium session timeout

I have a session timeout problem like this: I am using selenium + webdriver + java(junit) While testing each(tab) test case of particular web page in one programme, i need first test Login button, ...
0
votes
1answer
4k views

Selenium C# 4.0 release says you can hide the command prompt - how do you actually do it?

I'm updating to version 2.40 and was looking at the change log. http://selenium.googlecode.com/git/dotnet/CHANGELOG It says "Now provide an option to hide command prompt window for driver service ...
0
votes
1answer
22 views

I want to run Selenium IDE recorded tests consistently against several environemnts

Im looking to record automated tests against a web application using Selenium IDE. What I want to do is then run these tests automatically against various envs. Is this possible? From what i can ...
0
votes
1answer
19 views

can we create a software application for the full script of selenium coding we have done? [closed]

If we have created some selenium code for web application testing. After completion of the script coding, can we create a java application or something like that?
0
votes
1answer
41 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 ...
0
votes
2answers
62 views

Parallel Testing with Selenium Grid - Static classes have driver issues

I am currently working on an automation project. I have the project itself complete. However, I am now integrating Selenium Grid into my project to run my tests parallel on different browsers e.g (...
0
votes
1answer
99 views

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

Firefox Browser compatibility with Selenium IDE and Firebug Plugins or addons.
0
votes
2answers
63 views

Unable to Select options from dropdown field?

I'm using Selenium-webdriver with Java from the MavenProject. Version 2.53.0. This is the HTML of the dropdown field: <div class="col-lg-7 col-md-7"> <select id="...
0
votes
1answer
66 views

Is there a similar tool to Selenium? [closed]

Do you know any application that is similar as Selenium, both commerical and open source? Can you recommend me any application except Selenium?
0
votes
2answers
53 views

Need to get the value from h1 tag

Need xpath for the below script where i need to store the number 3: <div class="col-xs-4"> <div class="col-xs-8"> <small class="stat-label"> <a style="color:#fff;" href="...
0
votes
2answers
143 views

Executing large number of test cases

I have 120 test cases in my project. All those test cases are running on a live site. Here I configured all these 120 test cases in a single suite (TestNG.xml) file. It's taking 4 to 5 hours to ...
0
votes
2answers
125 views

How to verify PDFs with Selenium web driver

In our application, we upload PDF's into an interface. In this interface, the PDF is just a property of an object in a row that is displayed for the end user. The end user can see if a PDF has been ...
0
votes
1answer
50 views

Selenium scripts are failing [closed]

We have selenium scripts (say around 20 scripts). When we run all the 20 scripts some how 3 or 4 scripts going to fail but when I run the same script it is going to pass. I don't understand whether I ...
0
votes
1answer
66 views

Looking for approaches to placing orders on an eCommerce website quickly

I typically write automation using Java/Selenium but placing an order using a typical script takes close to a minute per order on our sites. I'm looking at potentially placing hundreds if not ...
0
votes
1answer
196 views

Even though my xpath is correct I am getting error as org.openqa.selenium.ElementNotVisibleException

I'm unable to click on Plus button and Minus button. My xpath is as //div[4]/span[2] Even though my xpath is correct, I am getting an exception. I have also synced it using waits. <!DOCTYPE html&...
0
votes
1answer
66 views

Which automation tools support Version One [closed]

Please confirm does any of the following automation tools provides support for Version One (Agile Project Management Software)? QTP Test Complete Selenium
0
votes
1answer
144 views

When running Selenium tests on another machine, page element renders offscreen so tests fail

My test cases are successfully executing through the terminal and Maven in my local environment but when I run the tests in a Jenkins job, they fail due to the browser size. (I have taken a screenshot ...
0
votes
1answer
87 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
0
votes
2answers
151 views

Selenium - Best practice, mapping an object to HTML form?

I was wondering if anyone uses a design pattern where there is an object (similar to a page object) which has fields for each input in an HTML form. I guess the fields would be nullable and then the ...
0
votes
3answers
118 views

Page Factory @FindBy

I am currently learning page object model (POM) and I am trying to access a specific web element using @FindBy but I am not sure how to correctly write the syntax for my element into @FindBy? What I ...
0
votes
1answer
3k views

Selenium framework using C# and excel

I am new to automation (Selenium ). I am working as manual tester and recently got a task related to selenium automation. I have basic knowledge of selenium and very good knowledge of C#. I can ...
0
votes
2answers
169 views

Selenium Web Driver and OpenLayers 2.x: How to do an identify on a map?

I've had to test a web mapping application that use OpenLayers 2.x, using Selenium Web Driver in Java and using Firefox (I'm on Windows 7). I've found only this issue: http://stackoverflow.com/...
0
votes
2answers
1k views

Select SSL certificates using Selenium web Driver

I'm using Selenium Web Driver on Windows 7. I need to test a web application and I've to use a SSL certificate to enter. I don't know how to select the right certificate to use my application. I'm ...
0
votes
1answer
196 views

Solution for Test Automation for web gis/mapping application?

I have to find a solution for test automation for webbased GIS/mapping application that is using OpenLayers 2.x or Leaflet as JavaScript libraries. I'm oriented on evaluate Selenium WebDriver (or ...
0
votes
1answer
82 views

Page was loading very slowly when compared to manual process

I am working on one of the php web site, the home page consists of a background image and on the top of the image there is a button. Now my problem is whenever I am doing automation for this web site,...
0
votes
1answer
332 views

Blank screenshot with WebDriver

Im not sure why, but ever time my screenshot is executed, the images are saved as blank. heres the code: public void screenshotOnError() throws IOException { WebDriver driver = new ...
0
votes
1answer
129 views

Volume Testing Using Selenium

Issue: A code change to how our Instagram feed works on the Y page resulted in a memory overflow under production traffic volume, that did not occur in lower (QA / Preview) traffic volume. When the ...
0
votes
2answers
6k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I ...
0
votes
1answer
3k views

Type mismatch: cannot convert from element type Object to WebElement

I am getting error"Type mismatch: cannot convert from element type Object to WebElement" when tried to run a java file to check broken images on webpage. My Code : List elementList = new ArrayList()...
0
votes
4answers
1k views

How to find broken links using Selenium IDE

Consider I am having hyperlinks on a webpage. How can I find which links are working and whichare not? Kindly suggest me how should I track this using Selenium IDE or Java code.
0
votes
4answers
8k views

How to Retrieve the values from a drop down using selenium-WebDriver?

I am using below script to retrieve specific item from drop down but it's not working. Select salTitle = new Select(driver.findElement(By.id("s2id_QuickEnquiryForm_salutation"))); salTitle....
0
votes
1answer
2k 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 ...
0
votes
2answers
785 views

Selenium find all elements without a class

For example, if I am on a product selection page, I would like to select all the elements that aren't sold out. <div class="item sold-out">Item One - Sold Out</div> <div class="item"&...
0
votes
1answer
901 views

How to test Image carousel

I would like to test an Image carousel using Selenium C# An example of the type of the type of carousel can be found here: http://bxslider.com/ Maybe the test could click on the next image, assert ...