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
12 views

Unexpected WebDriverWait / FluentWait behaviour - throws Exceptions anyway

I am having some issues with the way the WebDriverWait and FluentWait is (not) working. First of all, the requirement: Checking for the visibility of an validation error after submitting a login ...
1
vote
2answers
18 views

How to Detect if Autoit script is failed or not in selenium (java)

I need to detect if current running autoit script is failed or not. I tried to wait for 1 min in the following code, if in this time 1st Autoit script doesn't complete then it will move on to 2nd ...
2
votes
3answers
45 views

How to implement a lock in Selenium (Java)

I want the Script Openfile.exe to only if the previous one i.e CreateNew.exe has finished Right Now whats happening is When I run TestNG.xml file it runs all the @Test Priority wise and within 5 sec ...
1
vote
1answer
29 views

Selenium Java Robot - How to Click on particular location(X,Y) of Firefox browser?

I'm currently using a robot to click at a location on the screen as I've had issues with clicking a button that has a specific ID. e.g. Button_1401. This works fine up to a point, a few problems I've ...
0
votes
0answers
16 views

How to perform double click with noblock with Jemmy on JTable?

Auto-test must perform double click on a table cell, but right after the click the table is blocked by popup window. Code: contractsMainTable.clickOnCell(row, column, 2); Is there any noblock ...
0
votes
0answers
10 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 ...
0
votes
1answer
14 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
8 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 ...
1
vote
2answers
47 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
34 views

Constructor calling in page object model [closed]

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..??
1
vote
1answer
26 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
0answers
25 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
4answers
62 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....
1
vote
2answers
39 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
36 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
37 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
49 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?
1
vote
2answers
37 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
0answers
7 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.
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
1answer
42 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 ...
0
votes
0answers
13 views

Get Coordinates of link that is in canvas

I am doing automation in selenium with RobotFramework in Java.I want to get x,y coordinates of links that are drawn in canvas. I tried to find a solution online but I just got to know that some java ...
0
votes
0answers
59 views

Getting Unknown error While Using latest Verison of Selenium With Microsoft Edge Browser

My Code to launch Browser: System.setProperty("webdriver.edge.driver", "C:\\selenium-drivers\\MicrosoftWebDriver.exe"); DesiredCapabilities capabilities = new DesiredCapabilities("...
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
52 views

Switch case and dropdown in selenium

I am writing code to get state value from the drop-down and depending upon the state calculating the tax rate. I am using switch case statement to define the tax rate for each state. I want to use ...
0
votes
0answers
33 views

Selenium EventFiringWebDriver in page object model and refactored

I'm struggling with this one, how to implement EventFiringWebDriver (e_driver) without having a lot of repetitive code. As I'm understanding it, in order to capture finding elements and acting on ...
0
votes
1answer
18 views

HttpClient- Read all resources headers for all resources for entire page

I need to check ETag from the header response of requesting URL. I know that when request URL, then response will be html, css, js and images. My issue: How to read header for all these resources ...
0
votes
2answers
83 views

Are other classes able to access the webdriver instance when extending test base class? Getting NullPointerException Error

I am getting this error when running the below selenium scripts using TestNG with Selenium Grid. I'm extending the testbase class to access the WebDriver, but I'm not sure if each class is getting the ...
0
votes
1answer
54 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
1answer
44 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
vote
1answer
51 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, ...
1
vote
2answers
31 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 ...
0
votes
2answers
28 views

Scroll Issue in Android Automation using SeeTest + Selenium Webdriver

I am using SeeTest + Selenium Webdriver + JAVA for Automating a Android application There is one contact page there are 15 fields . After filling 5th field the keyboard is overlapping the 6th ...
0
votes
1answer
57 views

How to execute a Selenium Java test using batch file?

I have created a batch file containing Java file locations : "% C:/location..." Now , when I double click this file, it opens up eclipse with this java class inside. What I want is that this file ...
1
vote
1answer
73 views

Selenium delete cookie

I am using Selenium via Java. My test case logs into an account, but when the next test case runs (which happens to also log into an account) it fails since the credentials are still saved from the ...
1
vote
1answer
43 views

Element is not clickable(x,y) even there is no scroll in page

I am unable to click on the "Login" button provided in the header I am new to selenium, here is the code snippet public class Muft_Mashwara_login { public WebDriver driver= null; @...
1
vote
1answer
68 views

How to initialize the driver globally in selenium

I wanted to create a separate class to initialize the firefox driver and then use the driver instance in my other TestNG classes. Can someone tell me how to do this and how to use the same driver ...
1
vote
1answer
37 views

How to get colour, font of java table row/cell/text with Jemmy?

Need to check color/font style of java table (text, background) in Swing application cause style of row should depend on a column value. It is possible to get color of font and background of ...
1
vote
1answer
68 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 ...
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 (...
2
votes
2answers
100 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 ...
0
votes
1answer
19 views

Jemmy strucked at clickMouse() when notification dialog with progressbar are displayed

During autotest execution (jemmy lib is used to interact with Java GUI elements) address data is entered and button 'Search for address' is pressed. At some addresses notification dialog with ...
1
vote
1answer
73 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
154 views

How can we generate unique distinct users for parallel tests with selenium?

How can we generate unique distinct users for parallel tests with selenium WebDriver and java or Javascript. Suppose, in google create an account action I have to pass firstname, lastname, username &...
0
votes
1answer
45 views

Email content checking

I am doing automation testing. In our web application the employees get daily mail notification. what i need is ,to write test case to check the daily emails. The emails contents are the services that ...
0
votes
1answer
38 views

How to define elements with Jemmy library with Chooser?

I am researching possibility of testing Java GUI application with Jemmy library. Elements in application are defined by constructors like: JFrameOperator mainFrame = new JFrameOperator("Main window ...
0
votes
2answers
72 views

How to resolve NullPointerException error in my below POM code?

I am getting java.lang.NullPointerException while executing my test case , I am using Page Object Modle with PageFactory ,following are the code snippets LoginPageObjec.java public class ...
0
votes
0answers
24 views

Does it require to install all necessary software for slave in jenkins

I have built automation script and everything working perfectly. Now client want to run same script from his location. I am thinking to set his computer as slave in jenkins , but does it require to ...
0
votes
2answers
38 views

I am getting java.lang.NullPointerException while executing my test case

I am getting java.lang.NullPointerException while executing my test case , I am using Page Object Modle with PageFactory ,following are the code snippets TestBase Class: ackage com.base; import ...