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

Unit testing with external files

I started writing unit tests recently and need to test reading fields in a spreadsheet (.xlsx and .xls), my biggest question is: Should I create a spreadsheet by code using Apache POI or use external ...
0
votes
1answer
15 views

Cucumber not finding @Findby annotations

Im trying to set up cucumber over my page object. I currently have as my login page object: @FindBy (id = cF.username) public WebElement username; @FindBy (id = cF.password) ...
0
votes
2answers
29 views

cucumber java.lang.IllegalArgumentException: Not a file or directory:

I'm new to cucumber. I have created a cucumber project but cannot seem to run the project. Every time I do, I get an error: java.lang.IllegalArgumentException: Not a file or directory: Here is how my ...
0
votes
1answer
19 views

Blank screenshot with WebDriver

Im not sure why, but ever time my screenshot is executed, the images are saved as blank. heres the code: public void screenshotOnError() throws IOException { WebDriver driver = new ...
0
votes
1answer
20 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
1answer
25 views

Ant compile failed, packages do not exist

I'm trying to compile my maven test project in intellij and everytime i compile, i get this error: Buildfile: /Users/username/Desktop/workFiles/maven/MavenProject/build.xml setClassPath: init: ...
1
vote
3answers
88 views

Is there any way to continue selenium web driver script after assert fails?

I have some script which is written with selenium webdriver. Actually, I have put some assert statement in between script. When an assert statement fails my script stops execution. Is there any way ...
0
votes
2answers
78 views

How to check is image is loaded or not in selenium?

I have a html div like this <div if="url" class="img-alt__graphic ng-scope" ng-style="ieCSSFilters" style="background-image: url(www.xxxxxxx.com;size=270x360);"></div> In this div tag ...
2
votes
1answer
65 views

How FluentWait is different from WebDriverWait?

How is the FluentWait is different from WebDriverWait? I am using WebDriverWait having the polling interval set to : 500 miliseconds. Still, WebDriverWait returns after some delay (i.e. 2 - 3 seconds ...
0
votes
1answer
29 views

Assertion error when comparing the text of an element

I am getting the following error while try to verify assertion. I tried adding wait but it didnt help. Error message: java.lang.AssertionError: expected:<Risk Assessment Form: Completed> but ...
1
vote
1answer
45 views

How to click on element only if data exists in excel table? [closed]

Hi so currently I'm working with Selenium webdriver in Eclipse.. I'm testing a web app and having data driven from an excel sheet. There is optional information and you can click 'ADD' and then a pop ...
0
votes
2answers
63 views

how to iterate over a collection of items in selenium webdriver

I have a collection of media item on a web page and all media items have the same class. The elements do not have IDs. I do not want use XPath selectors. When I use class name, it will pick only ...
2
votes
2answers
64 views

How do I copy substring to array of strings

WebElement ELR = driver.findElement(By.id("trades-list")); List<WebElement> list = driver.findElements( By.xpath("//*[contains(@id,'trade-summary-92')]") ); String[] tradeId = null; for(int ...
0
votes
1answer
23 views

Collect system and hardware informations of remote (apache and tomcat) servers from java code [closed]

I look for a solution to get hardware information about remote servers using java code
0
votes
0answers
35 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
-2
votes
2answers
37 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
2answers
42 views

How to select category from Ebay dropdown list? [duplicate]

Hi I'm learning automation testing using Eclipse, Selenium Webdriver, and Java. I'm practicing. I'm trying to select the label 'Consumer Electronics' from the Ebay dropdown menu and search only in ...
0
votes
1answer
40 views

Access WebElement in selenium testng [closed]

having code like this, with WebElement inside of class @Test public void testTable() { WebElement simpleTable = driver.findElement(By.id("items")); simpleTable.click(); } how ...
0
votes
1answer
80 views

How to validate maximum character check in webdriver/java

I want to validate the maximum character limit of the text field in webdriver/java
0
votes
1answer
36 views

Finding Element on a webapplication built using frames

Im new to Java and selenium webdriver. I am currently writing a a script to be able to verify a contact has been added to a contact list from a form. The workflow is: The menu of our application is ...
0
votes
1answer
34 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
50 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 ...
2
votes
1answer
33 views

Handle conflicts in parallel execution of jUnit testruns using the same database

I am actually working on how to manage the execution of many jUnit classes calling the same database, the tests interact using Web-services. If it is possible, it would be a great help if you would ...
1
vote
0answers
51 views

How to disable specific Maven and TestNG test listeners when running tests from groups?

I am using Maven and TestNG to support my Selenium testing framework for a project. I am using a custom test listener to report results into TestRail (our TCM tool). I am also using another custom ...
3
votes
1answer
113 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
6answers
97 views

Which can be better to work with Selenium WebDriver - Java or Python? [closed]

I have start learning Selenium WebDriver, but i am confused between Java and Python. Which language should i choose? I do have basic ideas of Core Java but haven't wrote a single piece of code with ...
0
votes
1answer
34 views

How to check when self.close(); executed or not in java?

the code is self.close(); some times the window is closed and sometime it doesn't closed and not throwing any popup or alert. So i wanted to check whether the window is closed or still open? How it ...
0
votes
1answer
100 views

Help with else if statement Webdriver Selenium

I have this code below which seems to not go to the else if statement. It runs the first part but never seems to go to part 2, if element 1 is already selected. Thanks if ...
0
votes
1answer
54 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
1answer
64 views

Automation framework structure for two browsers simultaneous testing

Some high level (UI) smoke test scenarios should be automated for the web application made for audio/video/chat conference calls. At least one to one(peer-to-peer) users should be used to simulate ...
0
votes
1answer
81 views

Eclipse IDE and/or NetBeans not opening because of Java Error Code: 1603 [closed]

I'm trying to setup Eclipse on my local drive for Selenium 2.0/WebDriver but getting the following error when opening the application: Java was started but returned exit code=13 ...
1
vote
5answers
114 views

Can someone clear-out these job posts for me once and for all?

A typical job-post for a testing position: Requirements: Programming experience with Java, Python, VB or C# Ability to write test cases and work with test-automation Database knowledge Experience in ...
0
votes
4answers
170 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
3answers
100 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.
0
votes
1answer
23 views

java software quality in eclipse while developing

How can I increase the quality of code while developing itself. Is there nay tool available which will analyse my code and tell which part of code will create performance issue. I dont want different ...
-1
votes
1answer
63 views

Conflict in Automation testing and Manual Testing

I am new to Automation Testing,While writing automation script Using Selenium I am facing some issues,consider I have 7 Test Cases of which 2 Test Cases are repetitively failing but when I check those ...
-1
votes
1answer
140 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
3answers
1k 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 ...
0
votes
1answer
261 views

Sometimes can't able to select the options from drop down webdriver/java [duplicate]

I can able to activate the drop down and able to select the value from it sometimes but sometimes i can't able to select the option for the drop down and i am facing an timeout error. Code: ...
0
votes
1answer
25 views

Setting Date & Time in java

I am working on report generation, for generating i need date&time[time stamp] telling when the report is generated, for this purpose i have created a method which returns formatted date time ...
0
votes
1answer
476 views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am a new bee in Selenium testing based on java, needed help on handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child ...
1
vote
0answers
170 views

Function to write 2 D Array from java into Excel [closed]

I am writing a function which accepts array data as input,and according to the size of array I am filling to excel sheet. Also let me know is there any method get column size of array as array.leght ...
7
votes
6answers
2k views

Is writing unit-tests difficult for me as a QA-engineer?

I currently work as a QA-engineer. Work a lot with java, selenium and test-automation. But, unit-tests are something the developers have been doing and something that I fear. Is it difficult? Do you ...
0
votes
2answers
193 views

how to run concurrent users using different browsers in selenium for LogIn script

I have created login scripts using hub and nodes. execute command to start selenium server Started a Hub along with selenium server. Started multiple Nodes. Worked on scripts and run for Firefox. ...
0
votes
1answer
103 views

WebDriver - Using loadablecomponent design for URLs with query parameters

For example if the url is - http://blah.com?origin=home&id=54&level=2. This could be a dynamically generated link on a webpage with 'id' and 'level' values from the DB. Now if i want to use ...
0
votes
2answers
45 views

Selenium WebDriver Test on a Airways Website

I am new to the Selenium, i am trying a test on airways website, i wanted to see all the airports available in the "FROM TEXT BOX", how can i get that information, i know it is hidden but is their any ...
2
votes
3answers
601 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 ...
2
votes
4answers
322 views

How does one get started with web test automation using Selenium?

So I've been testing web based analytical software now for the past 4 years or so with mostly manual techniques. But for 2015, I've set myself the goal of getting setup and start writing automated ...
0
votes
5answers
342 views

Selenium: Unable to automate file upload [duplicate]

Can someone please help me in automating file upload on this page- https://www.designerexchange.com/index.php/sell/quote I tried everything, but the file upload is very dynamic.
2
votes
5answers
328 views

New to code reviews. How to approach from a software test engineer perspective?

I may be expected to perform code reviews in what'll likely be Java. The thing is, I'm a software test engineer. I've never been a developer nor programmer. I've always thought another developer would ...