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
25 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?
-3
votes
2answers
40 views

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file?
1
vote
1answer
131 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 ...
2
votes
2answers
83 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
43 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
28 views

How to convert string to double in jsp

TOPLAMBORCBILGISI = ""; int num1 = Integer.parseInt(ODENECEK_TUTAR_1); int num2 = Integer.parseInt(ODENECEK_TUTAR_2); int num3 = Integer.parseInt(ODENECEK_TUTAR_3); int num4 = ...
0
votes
3answers
59 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
0
votes
1answer
52 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
3answers
78 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
1answer
49 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
2answers
63 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 ...
0
votes
0answers
48 views

Cucumber: 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 as below: I have created step following: Feature: Try to login in Testsite ...
0
votes
2answers
67 views

How can I setup structure of automation for given project

I have been doing automation for websites and mobile apps since last year. I am using Java,Selenium webdriver, and TestNG. Now I have one big project to do automation and I would like to first set ...
0
votes
1answer
31 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
32 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
140 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
41 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
28 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
78 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
506 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 ...
1
vote
2answers
330 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
264 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
44 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
87 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
106 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
89 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
28 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
64 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 ...
0
votes
2answers
86 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
80 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
73 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
187 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
55 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
45 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 ...
2
votes
1answer
104 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
41 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
97 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
462 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
127 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
40 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
402 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
77 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
84 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
95 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
123 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
237 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
213 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
24 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 ...
0
votes
1answer
85 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 ...