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

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
0
votes
1answer
19 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 ...
0
votes
1answer
20 views

change the title of a webpage in JUnit test with Selenium Web Driver

I want to write a Automated JUnit test script with Selenium Web Driver to load a Wikipedia page and then change the title of the page loaded. import java.util.regex.Pattern; import ...
2
votes
5answers
280 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
2answers
36 views

How to read and write excel file on MacOS system using java?

I am new to MacOS systems. On Windows systems, we read and write data from Excel worksheets. What about Mac? If Notes is an answer, can you provide me with java code to read and write data from Notes ...
0
votes
1answer
91 views

Executing on a selected node in selenium grid

I have one scenario i.e.. I have one web view to take all actions(click,send-keys,opening new window) and locator types(ex: xpath,id,name and cssClassName) with these values I am going to create a ...
0
votes
2answers
52 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?
2
votes
2answers
3k views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
2
votes
4answers
85 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
1
vote
3answers
441 views

Which language to choose for Appium - Python or Java?

We have an iOS application (written with Obj-C and now starting to incorporate Swift) that we want to write tests for using Appium. Our test team comprises of people who have little programming ...
0
votes
1answer
28 views

Dataproviders and Asserts

When using DataProviders, on TestNG, my test method has asserts that will fail since the data passed in navigates to a different url. Is there a way to work around this, i.e. a way for the data to ...
6
votes
5answers
939 views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
1
vote
3answers
172 views

How to continue script when element is not found in selenium

I am using selenium web driver and appium as this is mobile application automation, I am trying to check that if element is there or not and based on that I have put conditions. long starttime = ...
0
votes
1answer
84 views

Help finding child class with cssSelector syntax

How can I find this element by css this is what I have so far. driver.findElement(By.cssSelector(".simplecolorpicker > span[title*=#ff8081]")).click(); Here is the image of the html:
0
votes
2answers
39 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
0
votes
1answer
457 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 ...
0
votes
3answers
5k views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
2
votes
1answer
130 views

How to connect to Java Applet using Python

I am looking for a solution. I am trying to automate user interaction on a web application which is having embedded java applet in it. Based on what I've found on the internet I know there are ...
0
votes
1answer
52 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
2
votes
4answers
727 views

Looking for a content-aware library for regression testing of PDF files

I'm doing some automated regression testing on a web application using Rational Functional Tester with Java. I need to test some PDF files produced by that application, comparing them with a "base" ...
0
votes
1answer
1k views

Getting started with Rest-Assured for REST-Api Testing

I am new to REST-Api testing. i am getting started with Rest-Assured for Rest-Api testing. i am having an issue in my first ever testcase. The code is as follows: @Test public void ...
0
votes
1answer
40 views

Getting NPE on screencapture with an error

I am currently setting up PageObject with PageFactory Automation tests. I currently have a screenCapture.java and I try to call the method within the screenCapture when there's an error. Here is the ...
0
votes
2answers
254 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When I click on the select box and then further use click() on the value item , it works fine. but when I use Keys.ARROW_DOWN its displays the ...
0
votes
3answers
4k 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
2answers
27 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) ...
0
votes
0answers
32 views

Stale Element Reference Exception:Element is not attached to the page document

I am getting stale element reference exception while running a loop. WebElement ControlTypeOp=driver.findElement(By.xpath("//select[@name='ctl00$ContentPlaceHolder1$ddlControl']")); Select ...
0
votes
1answer
56 views

Where to find complex test cases?

I am looking for complex test cases that will challenge my webdriver java skills. Does anyone have such an example? Links? Own test cases that has put your automation skills to the test?
0
votes
2answers
94 views

Jmeter with java coding

I want to write JMeter requests in Java. I found some examples by googling but I am not understanding how to assert the response i.e. the way we use Response Assertion to check whether the page was ...
2
votes
2answers
51 views

Using Selenium to test SOLR queries

I have a general question, which pretty much is, How do I test SOLR queries using Selenium? Suppose we have a SOLR query JSON file, which pretty much looks like a huge pile of text containing values ...
0
votes
1answer
52 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 ...
0
votes
0answers
25 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: ...
1
vote
1answer
475 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and i am unable to proceed. But I am able to do it manually. Now to proceed with ...
6
votes
8answers
10k views

What Concepts of Java do i need to learn to use Selenium Webdriver?

I want to learn Selenium WebDriver automation using Java. I have done manual testing before and want to learn automation. I just know the basics of Core Java. Could you please suggest me the Core ...
-3
votes
2answers
147 views
1
vote
1answer
149 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 ...
6
votes
4answers
3k views

Looking for open source, Java-based tool for performance testing

Goal: I have an enterprise application written in java to test for performance. I need to do it separately, so I will be basically simulating a user interaction over http/https. My findings: ...
0
votes
1answer
66 views

Finding Element on a webapplication built using frames

I am using Java with Selenium Webdriver. I am currently writing a script to verify a contact has been added to a contact list from a form. The workflow is: The menu of our application uses Angular js ...
0
votes
1answer
1k 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 ...
2
votes
2answers
142 views

How to find real world Selenium projects

Where can I find sample or real Selenium projects. All the material I can find on github and on internet are basic, and never intermediate or advanced. How does a real Selenium project look in real ...
0
votes
0answers
80 views

Selenium sendKeys() different behaviour for Chrome, Firefox and Safari

Below is simple snippet of code: @FindBy(className = "element-to-press") private WebElement elementToPress; // some other code Keys move = Keys.ARROW_DOWN; gridContainer.sendKeys(move); In ...
1
vote
2answers
6k views

Webdriver : How to switch to a specific window?

I came across many solutions for switching between windows, one of them is: Set<String> allWindows = driver.getWindowHandles(); for(String currentWindow : allWindows){ ...
0
votes
1answer
47 views

Upcasting FirefoxBrowser to Webdriver

When we write the code to automate the browser then what is the need of upcasting in the code Webdriver Some_Variable = new FirefoxDriver(); //Run time Polymorphism My question: What is the need to ...
12
votes
9answers
3k views

Tools for Java software testing

I'm currently working(almost finishing) a Java project that consists on a server application and some client applications on the same network, that will communicate with the server only to request ...
0
votes
3answers
86 views

Is it worth it to learn an automated testing software as a Java web developer?

I want to learn Selenium web driver (or JUnit), but I'm hesitating on whether to learn it or not because my work is not focused on testing. I do maintain and develop Java web based applications and as ...
0
votes
3answers
74 views

Java concepts needed to learn selenium [duplicate]

I am a Manual Tester having 2.9 yrs of experience Now that i want to learn Selenium., can anyone tell me what all i need to learn in Java which helps in learning Selenium
1
vote
2answers
112 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: ...
0
votes
1answer
90 views

Conflict in Automation testing and Manual testing

I am new to Automation Testing. While writing an automation script using Selenium I am facing some issues. I have 7 Test Cases of which 2 Test Cases are repeatedly failing but when I check those cases ...
0
votes
1answer
71 views

Select SSL certificates using Selenium web Driver

I'm using Selenium Web Driver on Windows 7. I need to test a web application and I've to use a SSL certificate to enter. I don't know how to select the right certificate to use my application. I'm ...
0
votes
3answers
272 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
6answers
15k 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 ...