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
0answers
9 views

load application-config.xml (spring+hibernate) file from test case

I am using application-config.xml file in which the hibernate configarations are included. When I run my test case (using Junit with Mockito), I want to call an abstract class HibernateUtil. Here it ...
1
vote
2answers
35 views

How to write data into excel using selenium?

I am using keyword driven framework to create the script in selenium.Any one please provide me script how to write the data into excel sheet with proper column names. Suppose once the customer is ...
0
votes
1answer
13 views

Get Test instance id using Java API

I want to query QC to get the test instance id under a test set using Java API. Could anybody tell me what URL to use.
0
votes
0answers
20 views

Tools for automated testing of web site in JavaFX WebView

Automated testing of web site in JavaFX WebView I have a Web Site, for which I have to write automated tests. The WebSite is built with the following technologies: HTML, CSS, Js, AngularJS. The major ...
0
votes
0answers
6 views

Status of Test instance under test Lab set not updating

I am trying to update a status of a test instance under test lab set via REST API. I creating a run and updating the exec-status of the test but HP QC execution grid shows still old status for test ...
0
votes
1answer
32 views

Constructor calling in page object model [on hold]

I had an interview recently in one of MNC company and they asked me how to call constructor in page object model. Can anyone help me on this please..??
0
votes
1answer
121 views

How to Code this SSL Certificate Dialog, with Selenium IEdriver “request for permission to use a key” IE 8 9 11

Can anyone help me with sample code please. I have to login with SSL client certificate to authenticate in IE, this UI only works in IE. I have this Autoit Script but the popup is not being read by ...
0
votes
1answer
28 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
1answer
43 views

Automation Code Management Using JAVA

I am new to Automation and I have started to work on SeeTest Automation. I want to know how to make proper classes and methods for automating an Android Application. My main concern is to know how ...
-1
votes
3answers
5k 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
24 views

Need to validate a calendar application against invalid dates

I am testing a calendar application, which allows a user to select day, month and year, but the problem is the developers have not implemented any form of date validations, which means every month can ...
0
votes
1answer
53 views

Check Box check and Un check using selenium web driver

I am not able to list out the check boxes which are checked and unchecked.the check boxes are placed in the div tags. And only class name is generated dynamically when the check box is clicked. /*****...
0
votes
2answers
226 views

How to run Junit test methods in parallel?

I need to run Junit test methods in a Class parallelly to save time using Threads. I have added the following code in my pom.xml file after referring to a website. please let me know what the next ...
1
vote
1answer
60 views

Testcase fails in Jenkins but passes locally via testNG.xml in IDE

I've come across a strange problem when I execute my testcases via testNG.xml they are fine and passed but whenever I execute the same testcase in Jenkins I got the following exception Element is not ...
1
vote
3answers
32 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 "IPS"....
0
votes
1answer
63 views

Selenium: Incorrect drop down option selected

While passing a value, system selects a different value from the drop down in selenium web driver. Following is the code written:- driver.findElement(By.xpath(".//*[@id='...
0
votes
4answers
154 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()...
3
votes
3answers
16k views

"Element is no longer attached to the DOM” StaleElementReferenceException when selecting HTML table row

I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I ...
1
vote
2answers
862 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 ...
1
vote
2answers
156 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 ...
0
votes
4answers
55 views

How can selenium webdriver locate elements successfully in an angular.js app

I identified the applications element (locators), but when I run using webdriver, I receive the following error: org.openqa.selenium.WebDriverException: Element is not clickable at point (784....
0
votes
1answer
306 views

How to integrate Jbehave and TestNG?

I googled and found most of scripts were written in Jbehave with junit. But I'm trying to integrate Jbehave with testNG framework. And the following were I tried so far. Feature file: Scenario: ...
0
votes
1answer
94 views

How can I execute selected test cases from list of testcases in TestNG at runtime?

I want to create a page with the details of test cases (say a HTML Page with some content). Say the testcases will be listed there. When i want to run the test cases then I will select them and click ...
1
vote
1answer
45 views

Getting a stale element exception (Selenium - Java)

I am using Selenium via Java. I am running into a stale element exception and I can't seem to identify the issue. I am interacting with a carousel (see image below). I have placed all the vehicles, ...
0
votes
1answer
143 views

Help Finding image in Sikuli X in Java

I am having an issue trying to find an image on the screen, I tried doing it in two different ways and it doesn't seem to work for me. I am trying to do this with Appium running on IOS simulator which ...
0
votes
1answer
88 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 ...
1
vote
1answer
81 views

Why JavaObject can not be addressed with descriptive programming in UFT 12.52

I am trying to address JavaObject (JPanel) by means of descriptive programming (DP) JavaWindow("label:=some label").JavaDialog("title:=some title").JavaObject([descriptor]) I checked existence of ...
1
vote
2answers
30 views

BrowserMobProxy verifying request

I am using Selenium with Java. I am trying to verify that a specific third party request came in so in order to capture the network traffic I used a proxy named BrowserMobProxy. I wrote the content ...
2
votes
1answer
74 views

I am automating a page which will open up a PDF while clicking on a link. After that I have to do the operations in the newly opened window

This is the code for transferring control for (String handle : driver.getWindowHandles()) { driver.switchTo().window(handle); ArrayList<String> windowTab = new ArrayList<...
2
votes
2answers
357 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( BrowserVersion....
1
vote
2answers
30 views

java: String.format with PageFactory

This is my String in non PageFactory framework, declared at class level. private final String fruits= "//a/h4[text()='%s']"; Which is used in same class in some method like this: public void ...
2
votes
1answer
35 views

Accessing weblogs via Selenium

I am using Selenium via Java. I am trying to test third party tracking and I am wondering if there is a way to access the network logs so that I can verify that a specific request came in? For ...
0
votes
1answer
82 views

Selenium: Isolating Assert Fail in Excel Data Driven Loop

Firstly I would like to point out that I'm a beginner when it comes to selenium so I apologise if this is not presented appropriately. I would like to incorporate data driven testing into my ...
4
votes
2answers
6k views

Free/Sample Selenium test suites (code) for Open Source projects

I am a student and for learning purpose I am looking for following: Open source projects who have a ready-made selenium test-suite, free for others to use can be any sort of web application, in any ...
0
votes
1answer
30 views

java + log4j : How to fix “No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies)”

Working with selenium + maven project in eclipse. I am facing below warnings: log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies). log4j:...
1
vote
2answers
42 views

Running TestNG XML from another project

Is it possible to run a testNG XML from java code, in a separate java project with the given path to the XML?
2
votes
5answers
15k views

selenium.ElementNotVisibleException: Element is not currently visible

I am working on selenium, while running Java code I tried to access a text box from the web page but selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted ...
1
vote
1answer
383 views

How to pass arguments to selenium from autoit script

Autoit has a order value ,which I want to pass it to database as argument to get table contents of that order id. I tried passing from command line ,but I don't want the arguments to get passed from ...
3
votes
1answer
214 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 ...
0
votes
1answer
96 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
1
vote
1answer
58 views

Driver lost focus [closed]

I have one test case with java selenium webdriver. When I go to the login, everything is OK, but when I go to the other click in the new show, driver can´t find the object. Selenium IDE captured the ...
1
vote
2answers
36 views

How can I return values for 2 columns in my database?

thanks for reading. My scenario (possibly not the best way of doing things, but im still learning) I have a sql database, which houses in 1 table test data (A string value) and a boolean (expected ...
0
votes
2answers
479 views

Difference between Singleton, POM, Abstract design patterns

These are the three most popular design patterns in JAVA. Most Selenium WebDriver projects are build on these. What is the difference between these three, with examples? Does Choosing a pattern also ...
3
votes
9answers
944 views

What are good resources for a manual tester to transition to automation?

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 ...
0
votes
1answer
49 views

Is there any way to record the screenshots of minimized browser windows

I am using Java and selenium to write some tests. I need to record my screenshot while the tests are running it makes much easier for me to track if any bugs occurs. The problem is that I need to run ...
1
vote
4answers
138 views

Can anyone help me out in getting the tooltip

I am unable to get the tool tip from a tag. The snippet of the HTML is <table class="tiger-stripe" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr class="...
0
votes
1answer
176 views

Exception in thread “main” java.lang.NoClassDefFoundError

I am trying to do this: http://www.softwareishard.com/blog/firebug/automate-page-load-performance-testing-with-firebug-and-selenium/ Below is the screenshot taken from eclipse package com.stack....
1
vote
1answer
49 views

Selenium > new windows & pop-up : What is different between new window and browser alert in selenium?

This is very common scenario when we automate any web application. But I am little confused between new window and pop-up? Please can you add little examples?
0
votes
0answers
5 views

Lean FT switch to window

I'm using Java and HP Lean FT Browser object - my webapp opened new browser window, how can I detect it? Selenium has driver.getWindowHandles but I cannot find something similiar in SDK.
0
votes
1answer
41 views

What is the most effective method of storing the value in this string?

thanks for reading! :) currently I have a Listbox on the page with an associated record count, scenarios would be as follows: No Records Displaying 1 Record(s) Displaying 1-14 of X Records ...