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
2 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
26 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 ...
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....
0
votes
2answers
48 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
63 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
12 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
22 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 ...
3
votes
6answers
787 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 ...
0
votes
1answer
104 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
46 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
142 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
38 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
30 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
136 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
255 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
33 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
80 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
106 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
135 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
128 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
72 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
66 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 ...
0
votes
0answers
11 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 ...
2
votes
2answers
76 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
359 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
410 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 ...
1
vote
1answer
48 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 ...
0
votes
1answer
38 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
128 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="...
7
votes
3answers
10k views

Selenium form input sendKeys doesn't always work under IE

We're trying to use Selenium 2.0b3 to verify behavior of a Java web site we've recently acquired from a third party. The site often uses AJAX to plop HTML replacements onto the page. Internet ...
0
votes
1answer
142 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....
0
votes
2answers
707 views

Using Jtidy to parsing HTML

I am using Jtidy I pass an InputSteam and then I tried to validate whether or not the XHTML code in the InputSteam is valid. InputStream s = new ByteArrayInputStream(my_string).getBytes(...
0
votes
1answer
35 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; @...
0
votes
1answer
738 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
3answers
4k 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); ...