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
37 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; @...
-2
votes
0answers
22 views

The given selector “//*[@id='login-username']” is either invalid or does not result in a WebElement

I am trying to set a value in the text field .I have xpath and the value for the texxtfield stored in a HashMap. public static void textField_SetText(Map map,WebDriver driver){ try{ ...
0
votes
0answers
12 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 However ...
0
votes
1answer
754 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
0answers
9 views

int i$1 = 0; I encountered this syntax in java. Could someone please explain what “$” means in a java variable? [on hold]

I have with me, a piece of code which I am not able to understand. It is as follows: String[] i$ = pairsColumnValues; int result = pairsColumnValues.length; for(int i$1 = 0; i$1 < result; ++i$1) {...
0
votes
1answer
18 views

calling a java method from junit test page

Is it possible to call a function in java from junit test page. Some times the called function need to call another function in interface or java class or repository. Is this works fine???
3
votes
1answer
140 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
0answers
9 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
2answers
17 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
0answers
17 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("...
3
votes
1answer
85 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 ...
2
votes
6answers
832 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
8answers
30k 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 load....
1
vote
2answers
56 views

Using boolean to select gender on a form

I am creating a test suite using appium/selenium java and it was suggested that I use a boolean to select the gender on a registration form. The page objects on the gender page are male, female, and ...
0
votes
1answer
38 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
2answers
53 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
66 views

Cannot get a text value from a numeric cell

Cannot get a text value from a numeric cell while reading numeric data from an xlsx file in apache poi excel read, the following is the code snippet to read data from excel I've mix of columns ...
0
votes
1answer
28 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
1answer
19 views

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

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

Store result file dynamically

I'm using selenium selenium-server-standalone-2.53.0.jar file. java -jar selenium-server-standalone-2.53.0.jar -userExtensions user-extensions.js -trustAllSSLCertificates -htmlsuite "*firefox" "https:...
0
votes
0answers
23 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 ...
2
votes
1answer
91 views

Issue in executing testcases in TestNG(java)

How to run other tests in TestNG after one test is failed using Java For example: @Test(priority=1) public void Online1(){ //code } @Test(priority=2) public void Online2(){ //code ...
0
votes
1answer
108 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
34 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 ...
0
votes
1answer
17 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
1answer
48 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
157 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
39 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
31 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
4answers
137 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()...
0
votes
1answer
263 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
41 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 ...
0
votes
0answers
20 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
82 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 ...
0
votes
1answer
112 views

Select multiple options and selection values will come 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
3answers
142 views

how to run failed testcases using TestNG?

I created jar when i run on command prompt i am able to see result, what i want is "i need to run failed test cases if there is any" public class DemoProjectClass { public static void main(...
0
votes
1answer
132 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 ...
1
vote
1answer
73 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 ...
5
votes
2answers
3k views

How and where to store dynamic result/data using webdriver java

I want to know "How and where to store dynamic (Search results) result/data", I am getting the results and not sure what to do next. Also, after saving these results I want to use this in another ...
0
votes
1answer
14 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
5k 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
67 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 ...
2
votes
2answers
77 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
2answers
56 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
3answers
11k views

How to run all Selenium test cases via batch file

I am a noob in Java and automation so please bear with me if I get the terminology wrong. I have a class file that can open a browser and navigate to google.com and then closes the browser. There’s ...
1
vote
1answer
364 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 ...
0
votes
1answer
91 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
53 views

Driver lost focus

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 ...
2
votes
3answers
4k 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.
0
votes
2answers
416 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 ...