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
2answers
65 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
77 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
18 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
32 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
1answer
66 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
45 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 ...
5
votes
6answers
7k 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 ...
0
votes
3answers
155 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
1answer
78 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 ...
1
vote
6answers
13k 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
1answer
24 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
1answer
30 views

Why would StringUtils return the incorrect # of matches of a substring?

I am using StringUtils from the apache commons library to check the # of matches of a substring within the source code of an html page. I have converted the page source using the webdriver command: ...
0
votes
2answers
205 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
1answer
24 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
38 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
1answer
38 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
26 views

Check Http Get/Post Status [on hold]

I want check http Get/Post call in automation testing,same as REST Client used in Firefox.also I am confuse about how to pass parameters with POST method and check its status.
4
votes
5answers
783 views

What kind of test cases can we not automate in selenium webdriver - java [closed]

I want to know what kind of test cases we cannot automate using selenium webdriver. I do not want to use any 3rd party tool (Autoit, etc..).
0
votes
0answers
33 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 ...
1
vote
1answer
426 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 ...
0
votes
2answers
61 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
23 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
3answers
2k 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
5k 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){ ...
3
votes
2answers
1k views

How to use TestNG to create multi-user tests scenarios?

What I need to do is to create UI test cases for our application and we have decided to use Selenium with TestNG (we're still open to other options if there are considerable advantages). The tests we ...
0
votes
2answers
62 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
2answers
83 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 ...
2
votes
3answers
1k 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
2k views

How to modify testNG report in selenium java

I am running my script in java and getting the results in testNG. But in my application after filling up the form I am getting a confirmation alert message. I am able to read that alert message and ...
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
1answer
31 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
52 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
246 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
votes
4answers
889 views

Selenium with Java to scrape data from website

I am trying to scrape data from a site I did code for. I want to scrape data on button click event but when I run my program it throws an exception Exception is: java.lang.NoClassDefFoundError: ...
0
votes
4answers
198 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 ...
1
vote
2answers
167 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 ...
0
votes
4answers
1k views

Robotium How to click or enter or select a file in Downloads folder on android device to open options

Robotium How to click or enter or select a file in Downloads folder on android device to open options as (Gallery, Image Gallery, Photos, ...) Here is my code: String filepath = ...
2
votes
1answer
136 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
36 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
3k views

Using FluentWait Class to wait until a condition is true in Selenium Webdriver?

I am not able to understand the use of new function() and apply() in the following code while learning timeouts using Fluent Wait method to set timeout in Selenium Webdriver script in java. Wait ...
1
vote
1answer
66 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
76 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
77 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
26 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
2
votes
1answer
38 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 ...
0
votes
0answers
50 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 ...
-1
votes
5answers
543 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.
0
votes
1answer
128 views

Android / Java Unit-Testing Clarification

While looking up for unit testing for Android applications, I came across a lot of voices over how it is difficult to test-unit an Android app. For example: Dependency issue - why is this a problem ...
0
votes
1answer
57 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
679 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 ...