Questions about testing applications written in Java, a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

learn more… | top users | synonyms

0
votes
1answer
654 views

Selenium webdriver-Not able to click on button which becomes visible on hovering only

Here I'm using LinkedIn for the learning purpose & want to perform the action on Edit profile=> Work experience=> Add position. Here "Add position" button comes under work experience which becomes ...
0
votes
2answers
20 views

How to identify element with knowledge of partial text for any tag (eg. div,span etc.) contains?

My source goes like this: <div name="something" id="something"....>IPS125</div> the number after IPS always changes. So I need to give the identification attribute as partial text ...
0
votes
2answers
49 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 ...
0
votes
0answers
33 views

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help. I am trying to implement POM with PageFactory but at the same time I want to make it data ...
0
votes
0answers
18 views

Selenium WebDriver statement is skipping after ajax call

Selenium WebDriver statement is skipping after ajax call for example if we use hotmail signup and want to check whether email is available or not I input the text and on lost focus hotmail return a ...
0
votes
3answers
339 views

Upload a file in Selenium Webdriver using sendKeys

I'd like to side step the dialog box and upload a file using the sendKeys method but it doesn't seem to work. Is anything wrong with the following code? WebDriver driver = new FirefoxDriver(); String ...
0
votes
1answer
26 views

how to unit-test a MultiFiles iterator?

I have this class: public class MultiFilesIterator implements IMultiFilesMerger { private RandomAccessFile randomAccessFile; private int currentFileIndex = 0; int filesCount; ...
2
votes
1answer
98 views

Facing a problem while switching frames with Selenium

I have a problem with switching frames in Selenium. I'm using Firefox Webdriver. In the first step I'm switching to Masterpass_frame then I click on a button to force the frame to reload. Then I ...
1
vote
0answers
47 views

How to Allow Firefox Offline Storage using Selenium

I am in the process of creating some BDD tests using Java, Cucumber & Selenium. The problem I am having is the website I am attempting to test has been specifically designed to work with firefox ...
2
votes
1answer
62 views

Problem with drop-down menu

I'm new to Selenium Webdriver and I have a problem with a dropdown menu. I compiled my code but sometimes it returns the error: org.openqa.selenium.NoSuchElementException: Unable to find element ...
0
votes
2answers
774 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
22 views

executeAsyncScript method doesn't appear when driver is instantiated as “Webdriver driver”

Going through the Webdriver Timeouts I noticed that for setScriptTimeout, if I type WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().setScriptTimeout(5, TimeUnit.SECONDS); I ...
0
votes
0answers
42 views

How to bring window to front with its children in QTP/UFT?

I am testing Java application with UFT 12.52. At the beginning of each test I check that all windows of application are closed: If JavaWindow("label:=window label").Exist(0) Then ... So if it ...
1
vote
2answers
68 views

Effective way to deliver automation script to client?

I am QA automation engineer. We have so many clients for whom we are doing web scraping. We automate their daily task to save their time and resource. Every client demands that they should able to ...
2
votes
3answers
2k views

Selenium Web driver and Mozilla Firefox Compatibility

Currently am using selenium-java-2.53.0,can you tell me which is the most stable FF version for it.
1
vote
0answers
52 views

Accessing Data from Tables

I want to check if my entered information is inserted into the list in the table of the html page but working with tables is a little bit more difficult than a normal list. Could someone help me? My ...
0
votes
0answers
24 views

Unable to send cookie name and its value through send keys method using selenium

I am trying to send a cookie name and its value of a specific website to assess page performance in another website using below code: public String addCookies() throws InterruptedException { String ...
0
votes
1answer
26 views

Automation script for Minimal Form Interface with dynamic ids [duplicate]

I am trying to automate a minimal form interface using Selenium to capture an element & later Java code. But the challenge is the minimal form has only one input container which is constantly ...
3
votes
1answer
645 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and I am unable to proceed but I am able to do it manually. Now to proceed with ...
0
votes
0answers
19 views

Unnecessarily wait 4 minutes on a page which has Google map as a field

Environemnt - Java + Web Driver + Java based application. In our application, we use google maps as an embedded component/object (using - maps.googleapi.com). There are other components/fields on ...
2
votes
1answer
253 views

Selenium HtmlUnit: How do I disable JS errors?

I have been working on a script for hours and I can't seem to figure out a way to make headless and automated automated. WebDriver driver = new HtmlUnitDriver( ...
2
votes
2answers
89 views

Using WebElement instead of By - is it possible?

In my Java WebDriver test I use method findElements() to check if an element is present on the page. I use the Page Object Pattern, so the element I want to check is declared in SomePage.class. In my ...
2
votes
2answers
3k views

How to start on QTP to automate a java swing application?

I have to start my automation on java swing application using QTP. I am quite a newbie in qtp. All I need is some documentation of the TOOL on how to get things configured and a step by step guide on ...
1
vote
3answers
407 views

Porting Selenium test from Firefox driver to HTMLUnit driver

I am trying to convert my selenium test from Firefox browser to HTMLUnit driver. But, when I try to run the HTMLUnit test , it gives me error for XPATH. The Firefox browser test runs absolutely fine. ...
3
votes
2answers
108 views

How to make a test of favicon in Selenium?

I have a task to check presence of the favicon on the page. How to do it? I use Selenium WebDriver. I made in the same way, addressed according to the link "http://my_site.com/favicon.ico", and ...
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.
0
votes
1answer
90 views

How to get color of java table row/cell with QTP/UFT (java swing application)?

I need to test that the color of java table row has changed to some specific value. But till now I see no solutions of getting this property. Let's assume that jTableObj is OR or DP representation of ...
0
votes
2answers
60 views

How to send key '(' and '!' to Selenium Web Driver?

I was trying to do write a test a case for a website that takes in the Java code , compiles it and runs it. However, while writing the test case , the text-area that takes input did not have all the ...
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
3answers
229 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
0
votes
2answers
46 views

How to mark all the checkboxes with Selenium Webdriver using Java?

I want to mark all the checkboxes in a page using selenium webdriver? How can I implement that?
0
votes
0answers
22 views

Which testing library this code comes from?

Which testing library this code comes from and what anti-patterns it contains? private String toString(int status) { switch(status) { case 1: return "SUCCESS"; case 2: ...
0
votes
2answers
48 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;" ...
0
votes
3answers
208 views

Spring framework to write Selenium Automation framework [closed]

I don't know it would be good idea. So I am looking for PROS and CONS of making Selenium Framework using Spring Framework. I have not come across a single forum/post/tutorial about this idea. If its ...
-1
votes
2answers
3k views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
1
vote
1answer
82 views

How to use chrome Plugins in Selenium WebDriver

I want to use chrome Plugins like what font, full page Screen capture. in one of my project, can we write the code for it? using Selenium web-driver + java. i am still on search, is there any work ...
8
votes
8answers
2k views

Is writing unit tests difficult for me as a QA engineer?

I currently work as a QA engineer and work a lot with Java, Selenium and test automation. But, unit tests are something the developers have been doing and something that I fear. Is it difficult? Do ...
2
votes
3answers
2k views

Cannot Instantiate class error - Selenium WebDriver

I am facing this 'Cannot insantiate class' error on running one of my test cases in Selenium webdriver using Java. Below is the class of the functionality of the test, package Pages; import ...
1
vote
2answers
97 views

What language is required when learning Selendroid?

I want to learn Selendroid. I do not know what language I need to know before starting with selendroid. I know selenium using Java. For selendroid, do I have to learn android?
0
votes
1answer
54 views

How to retrieve automated Test case names from Testlink

We are using Test link & Selenium webdriver for automation, we are updating the results of execution to Testlink once the execution completed. We would like to retrieve the Test cases from Test ...
0
votes
2answers
48 views

Stuck at NoSuchElement exception in selenium

I have a form which requires its data consists of textbox, combo box etc and finally i need to save. Please find below outer HTML pattern of save button: <input type="submit" ...
1
vote
3answers
3k views

Webdriver : How to perform scroll down an element (example div) using selenium?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet. <div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); ...
1
vote
1answer
142 views

Get runtime property for the same element

When we enter text in google search textbox it auto-suggest the options, the objects changes. Now I want to click the Search button which was earlier Google Search. I have created the Google Search ...
3
votes
2answers
127 views

How to find out which languages are supported by a website?

I am facing a problem while doing localization testing using selenium web driver and java,how to find out the languages supported by a web page? what i want to achieve is following 1. Enter the URL ...
3
votes
1answer
161 views

Handle conflicts in parallel execution of jUnit testruns using the same database

I am actually working on how to manage the execution of many jUnit classes calling the same database, the tests interact using Web-services. If it is possible, it would be a great help if you would ...
2
votes
4answers
116 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
0
votes
1answer
138 views

Unit testing with external files

I started writing unit tests recently and need to test reading fields in a spreadsheet (.xlsx and .xls), my biggest question is: Should I create a spreadsheet by code using Apache POI or use external ...
2
votes
5answers
702 views

Where to start learning test automation from?

Nervously looking at job posts, automation and programming is no longer "good-to-have". It is almost a must. I'm a manual tester looking to start working towards automated testing/test automation. I ...
1
vote
2answers
786 views

How difficult is selenium and test-automation in general? [closed]

How difficult is it to start writing test-scripts for someone who has been coding in Java? I've been hearing a lot about test-automation, selenium, test-script and so on but I cant get my hands on ...
0
votes
1answer
34 views

Compare if the output values are sorted or not using tree map and comparator

import java.util.Collections; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...