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
4answers
9k 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 ...
2
votes
2answers
24 views

How can I get the android window size using Java as programming language? [on hold]

How to detect the screen size for different android phones? I want the coordinate values like startx, starty, endx, endy. With that I can use the swipe method which takes these coordinates as ...
-2
votes
1answer
1k views

Get element by cursor position in selenium

I'm writing an auto testing framework using Selenium.I am trying to Locate which element my cursor is pointing to. for eg. there are two textbox textbox1 and textbox2. if I perform a tab swift ...
0
votes
1answer
22 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 ...
4
votes
1answer
125 views

Using Selenium Webdriver For Firefox Testing

I have been doing research into implementing Selenium Webdriver (currently version 2.49) for testing on Firefox. Currently I am capable of testing Chrome with the framework, but would like to extend ...
0
votes
1answer
74 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
39 views

Stuck at NoSuchElement exception in selenium

I have a form which requires its data consists of textbox, combo box etc and finally i need to save. Please find below outer HTML pattern of save button: <input type="submit" ...
0
votes
1answer
30 views

ArrayBound Exception Error [on hold]

When I execute the following program it displays an array bound exception: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Array { ...
0
votes
2answers
154 views

Where to find complex test scripts using Selenium/WebDriver? [duplicate]

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?
1
vote
1answer
79 views

Get runtime property for the same element

When we enter text in google search textbox it auto-suggest the options, the objects changes. Now I want to click the Search button which was earlier Google Search. I have created the Google Search ...
2
votes
2answers
100 views

How to find out which languages are supported by a website?

I am facing a problem while doing localization testing using selenium web driver and java,how to find out the languages supported by a web page? what i want to achieve is following 1. Enter the URL ...
1
vote
1answer
195 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
23 views

C++ app automation on multiple platforms

Need to automate C++ application testing on Web, Mobile (iOS, Android) and Desktop (Windows, OSX and maybe Linux). Searching for open source tools only and automated tests will be written using Java. ...
0
votes
1answer
74 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
1answer
39 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 ...
1
vote
7answers
22k 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 ...
0
votes
4answers
65 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); ...
2
votes
3answers
500 views

Python or Java for Loading and Performance testing

I'm looking to choose the best tool to perform Load and Performance testing on my web based application. The content of the application is based on Jasper reports and I want to see the behavior of the ...
3
votes
1answer
2k 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
3answers
56 views

How can i avoid or fix time outs in Selenium Java?

I'am using Selenium with Standalone Server (V2.48.2) with NetBeans and using Firefox (V44.0). I have tried different ways to get this fixed, but its an error that appears to be random in different ...
0
votes
1answer
45 views

Is this a good idea to test if text messages are exactly what they are?

I have been told that testing java exceptions' messages is a good thing, but it looks so much like redundancy that I cannot believe it. Consider following fictional code: public class ...
1
vote
1answer
581 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 ...
1
vote
6answers
113 views

What languages and frameworks should I learn for selenium automation testing? [closed]

I have been a Non-IT student, but now I want to start my career as a software tester. Are there certification I should get? Which programming languages and frameworks should I learn? Is it necessary ...
0
votes
4answers
90 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
0answers
19 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 ...
3
votes
1answer
61 views

Actions to search item and number of methods

I have questions about clean code. I'm writing a test in Java selenium page factory. I'm a beginner. I have two "actions", input text into search field and click button search. Now the question is, ...
0
votes
1answer
60 views

How should look test in webdriver with scenario

I have to test demo.opencart.com. Here is my scenario: Test scenario: 1 Open browser and go to Democart 2 Change currency to GBP (top left dropdown) 3 Search for “iPod” using text search 4 Add ...
0
votes
1answer
272 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
508 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
1answer
179 views

How to select hidden dropdown list in selenium webdriver with java?

I am trying to select the item from dropdown in selenium webdriver using java, but not able to select it. Its showing element not found exception and in html tag drop down is hidden. html code are: ...
1
vote
0answers
48 views

How to use chrome Plugins in Selenium WebDriver

I want to use chrome Plugins like what font, full page Screen capture. in one of my project, can we write the code for it? using Selenium web-driver + java. i am still on search, is there any work ...
1
vote
1answer
116 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( ...
1
vote
3answers
459 views

Running selenium scripts on remote machine

I have created some selenium scripts for one of the websites of my client. The scripts are in my local machine, running successfully. I want show a demo to my Project Manager on his personal laptop(he ...
0
votes
1answer
26 views

Phantomjs encoding error in java [closed]

http://stackoverflow.com/questions/15541529/phantomjs-outputencoding-js-error There are some links about this and I could not see solution. I define an URL containing İ letter. Eclipse does not ...
1
vote
1answer
54 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 ...
2
votes
1answer
55 views

Changing frame problem

I have a problem with switching frames in Selenium. I'm using Firefox Webdriver. In the first step I'm switching to Masterpass_frame then I click on a button to force the frame to reload. Then I ...
0
votes
1answer
42 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 ...
2
votes
1answer
39 views

how to compare my app battery usage to other apps usage?

I have built a navigation app (android and iOS) I want to automatically\manually test its battery consumption while navigating from A to B. And compare it to the battery consumption of external apps ...
0
votes
0answers
21 views

How to bring window to front with its children in QTP?

I am testing Java application with QTP 11.0. At the beginning of each test I check that all windows of application are closed: If JavaWindow("label:=window label").Exist(0) Then ... So if it ...
2
votes
2answers
131 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
0answers
177 views

Cucumber: Getting undefined steps in cucumber-jvm although step is definitely defined!

I'm having problem when executing the test-script which is designed with Cucumber framework with Java. My structure is as below: I have created following step: Feature: Try to login in Testsite ...
1
vote
2answers
149 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 ...
3
votes
1answer
270 views

How to connect to Java Applet using Python [closed]

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 ...
1
vote
2answers
87 views

Porting Selenium test from Firefox driver to HTMLUnit driver

I am trying to convert my selenium test from Firefox browser to HTMLUnit driver. But, when I try to run the HTMLUnit test , it gives me error for XPATH. The Firefox browser test runs absolutely fine. ...
1
vote
3answers
72 views

What language is required when learning Selendroid?

I want to learn Selendroid. I do not know what language I need to know before starting with selendroid. I know selenium using Java. For selendroid, do I have to learn android?
2
votes
3answers
679 views

Cannot Instantiate class error - Selenium WebDriver

I am facing this 'Cannot insantiate class' error on running one of my test cases in Selenium webdriver using Java. Below is the class of the functionality of the test, package Pages; import ...
2
votes
1answer
169 views

Webdriver : How to upload a file using relative path in java? [closed]

Need to upload an image using the relative path, which I would like to run on both IDE and command line. Here is the code which runs with the absolute path, File classpathRoot = new ...
6
votes
5answers
1k 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?
0
votes
1answer
59 views

Console prompts error : Compound class names not permitted

The thing what I wanted to do was, write java code for automate the sending an email via gmail. When I try to locate element of send button it throws following errors. The code I used, is like this; ...
1
vote
2answers
310 views

Jmeter with java coding [closed]

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 ...