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

2
votes
4answers
420 views

Daily tasks/Anything fun & challenging to automate with Selenium? [closed]

I'm currently studying test automation with Selenium and Java. It's very fun, but I have only done basic stuff. I've been thinking about something fun that I can do with selenium, for instance, ...
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 ...
2
votes
1answer
2k views

Selenium webdriver java with jdbc

I am using selenium webdriver with Java jdbc. Below are my queries. First: I am trying to login to the application with username and password from database (Using SQL Query). I am getting the ...
2
votes
3answers
366 views

Selenium opens browser and loads page, then stops

Selenium opens browser and loads page, then stops. I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've ...
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 ...
2
votes
2answers
240 views

Dynamic whitebox testing and coverage metrics for Java systems?

What coverage measures/metrics are useful for unit testing and for integration testing of Java or other object-oriented systems? Context: We would like to establish a better test process. Our ...
2
votes
1answer
153 views

Unittesting GUI. MVC model. When to move data to controller

I've been reading different opinions about how to unittest GUI in Java and it is clear that the best approach is to design the code in a MVC model, in order to be able to test everything. Anyway I ...
2
votes
1answer
104 views

Test automation for .NET / Java Project relying on app container

I am looking to a testing / continuous integration tool which can help me with the following: 1) Inside a Maven project, allow me to run a JUnit test case that, using some API, deploy an application ...
2
votes
1answer
60 views

Open source tools for automation of testing Java GUI applications

The testing tool for Java GUI applications I know is: Jemmy - library that contains methods to reproduce all user actions which can be performed on Swing/AWT components (i.e. button pushing, text ...
2
votes
2answers
86 views

How can I get the android window size using Java as programming language? [closed]

How to detect the screen size for different android phones? I want the coordinate values like startx, starty, endx, endy. With that I can use the swipe method which takes these coordinates as ...
2
votes
1answer
237 views

Webdriver : How to upload a file using relative path in java? [closed]

Need to upload an image using the relative path, which I would like to run on both IDE and command line. Here is the code which runs with the absolute path, File classpathRoot = new ...
2
votes
1answer
220 views

How to debug heap thrashing problem [closed]

My application is causing heap thrashing. I have the heap dump but I don't know how and where should I start to look for problems? This is a 6 GB dump. Please recommend some suitable heap analysis ...
1
vote
6answers
156 views

What languages and frameworks should I learn for selenium automation testing? [closed]

I have been a Non-IT student, but now I want to start my career as a software tester. Are there certification I should get? Which programming languages and frameworks should I learn? Is it necessary ...
1
vote
7answers
28k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to ...
1
vote
5answers
779 views

Validating HTML code

I am testing a class that takes 1 string and generates an HTML page around that string. So I pass it the string Math and it returns to me a whole HTML page as a string containing that Word and with ...
1
vote
3answers
5k views

Is there any way to continue selenium web driver script after assert fails?

I have some script which is written with selenium webdriver. Actually, I have put some assert statement in between script. When an assert statement fails my script stops execution. Is there any way ...
1
vote
5answers
145 views

Can someone clear-out these job posts for me once and for all?

A typical job-post for a testing position: Requirements: Programming experience with Java, Python, VB or C# Ability to write test cases and work with test-automation Database knowledge Experience in ...
1
vote
4answers
1k views

How to work with changing element id in the html code

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
1
vote
5answers
1k views

How to locate the X-path of an element in eclipse accurately?

I am working in a project in which automation is done using Appium Tool.I felt bit difficult to track the X-path of an Image or Textbox in Eclipse while scripting.Sometimes the X-path will be given as ...
1
vote
1answer
270 views

How to setup selenium , projects and eclipse at one central point like server so multiple tester can write automation code at same time?

I want to set Eclipse, Selenium and our projects at some central level from where other tester can access code, modify code, update code etc. Until now I was alone doing automation scripting to my ...
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 ...
1
vote
1answer
36 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 bottom of div mentioned above. I am trying ...
1
vote
2answers
109 views

Logging every action with custom “debug” method. Good idea?

I'm creating my first full framework using Selenium and TestNG and recently implemented the ability to have logging enabled which will track every action (before and after). public class CustomLogs { ...
1
vote
3answers
79 views

Make code to wait before executing click() command

I have a Java code that populates all the text fields automatically. Before executing click() command for Submit button, I need to enter the Captcha manually. So I would like to make the code to wait ...
1
vote
2answers
758 views

How to get the text present between <H2> tag

I am trying this: String str = "//*[@id="Result"]/h2"; WebElement vele = driver.findElement(By.cssSelector(str)); String vin = vele.toString(); System.out.println("Vin is"+vin); The result is: ...
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 ...
1
vote
1answer
29 views

java software quality in eclipse while developing

How can I increase the quality of code while developing itself. Is there nay tool available which will analyse my code and tell which part of code will create performance issue. I dont want different ...
1
vote
1answer
673 views

Where does the “helper” method get placed within a test script?

I'm new to automation, and programming, for the most part. I have a test script where I have to verify the presence of certain elements within a page I am testing. At the moment, I have multiple ...
1
vote
1answer
6k views

How to pass two strings (Username and Password) one by one in the two different text fields (Username and Password) in webdriver (Java)

I am having two different Strings by name username and password. And i want to pass these string values one by one (ONLY one value from username and one value from password) into username and password ...
1
vote
2answers
4k views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know, that how we can take a series of screenshots / a video recording for a screen using Selenium 2 / Web Driver with JAVA ? Please provide the answer or the lick where I can get ...
1
vote
1answer
3k views

Is Selenium 2 WebDriver JavaDoc API available offline?

Can I get a offline copy/archive of Selenium Webdriver Javadoc API which is available here so that I can bind the same to my Eclipse IDE for offline use? A ready-made HTML archive will be ...
1
vote
1answer
78 views

Enforcement of quality as a runtime requirement

I come from a background that strongly emphasizes automated testing baked into the build process. You commit, the code is checked out by the build system, compiled, and tests run against it. If it ...
1
vote
3answers
27 views

Validating ePub File using selenium webdriver [closed]

Is there any way to validate the ePub file using selenium webdriver?
1
vote
3answers
405 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. ...
1
vote
2answers
330 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 ...
1
vote
2answers
54 views

How high level should be my unit-test?

I have a program with many classes. I manage the DI with Guice, btw. I wanted to write in-progress tests to my code (unit tests and higher level). I have few questions\difficulties: How high ...
1
vote
1answer
139 views

Parameters with DataProviders

Is there any way to use Parameters with DataProvider together in Selenium ? @Parameters({"safaf"}) @DataProvider(name="sss") public void hhhhh (String safaf){ }
1
vote
3answers
101 views

Where to store XPath variables

Where should I store XPath variables - in a class or in an external file? What are the (dis)advantages of these approaches?
1
vote
2answers
64 views

Existence of an element

I have seen a couple of ways to test if an element exists. One way: private boolean existsElement(String id) { try { driver.findElement(By.id(id)); } catch (NoSuchElementException e) ...
1
vote
2answers
4k views

How to check is image is loaded or not in selenium?

I have a html div like this <div if="url" class="img-alt__graphic ng-scope" ng-style="ieCSSFilters" style="background-image: url(www.xxxxxxx.com;size=270x360);"></div> In this div tag ...
1
vote
1answer
232 views

Eclipse IDE and/or NetBeans not opening because of Java Error Code: 1603 [closed]

I'm trying to setup Eclipse on my local drive for Selenium 2.0/WebDriver but getting the following error when opening the application: Java was started but returned exit code=13 ...
1
vote
3answers
593 views

How to automate Mouse hover action in webdriver/java/kendo ui

I just want to automate mouse hover function for my project the scenario is Scenario : There is a text box, if i hover on it,the edit icon will enable and i have to click that icon.
1
vote
2answers
8k views

Navigate to previous page using Selenium

I know there's a driver.navigate().back() but that's not what I'm looking for. Let's say a user is on PageA, they click on a submit button which takes them to a submit page. On that page, there ...
1
vote
1answer
914 views

Is parameterized constructor (Java) supported in selenium webdriver?

I was asked in an interview whether Selenium Webdriver supported parameterized constructors. Example: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...
1
vote
1answer
519 views

TestNg not executes @BeforeGroup if the method is in another class

My code structure is like this: I have four classes having ten tests and one @BeforeClass method to run before any of the tests. In each of four classes all tests are of one single group. And I have ...
1
vote
1answer
162 views

Hyperlinking FindBugs report to source code

By default, the HTML report generated by FindBugs specifies the name of the Java class and line number(s) of each issue it reports. Is there a way to tell FindBugs to hyperlink the report to the ...
1
vote
1answer
50 views

How to generate test cases for JUnit?

Explanation We are currently using a self-made testing framework/tool, to test services of an client-server application. The framework currently works with own implemented JUnit like assert methods ...
1
vote
1answer
71 views

Automation - Testing the Contents in EMail

In my application I am supposed to test/fetch the data and contents of the E-Mail received after triggering the Schedule. How can I automate this scenario using Selenium web-driver ?
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 ...
1
vote
1answer
873 views

How to select hidden dropdown list in selenium webdriver with java?

I am trying to select the item from dropdown in selenium webdriver using java, but not able to select it. Its showing element not found exception and in html tag drop down is hidden. html code are: ...