Tagged Questions

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

1
vote
1answer
57 views

Where does the “helper” method get placed within a test script?

I'm new to automation, and programming, for the most part. I have a test script where I have to verify the presence of certain elements within a page I am testing. At the moment, I have multiple ...
0
votes
0answers
92 views

Data driven testing using SeleniumWebdriver,TestNG and Apache POI

! I'm using Selenium Webdriver, TestNG and Apache POI for my data driven test. Below is the code I'm using but the test is failing with the following exception: SKIPPED: testLogin ...
0
votes
1answer
54 views

Selenium2 / WebDriver: How to click an <i> element in an <a> element?

I got stuck for the below code.it has an edit icon for which code are follows: <a href="#tradeModal" id="tradeModalEdit" data-toggle="modal" class="pull-right" style="margin-left: 12px;" ...
0
votes
1answer
62 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
2answers
107 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. ...
0
votes
3answers
88 views

Selenium (Java): Which IDE to use; Eclipse or Netbeans

For a new project i want to start automating tests using Selenium. I'm going with Java as the object that has to be tested is a Java application. In my company most people use either Netbeans or ...
0
votes
1answer
74 views

automating selenium 101

I'm just getting started with selenium: package selenium; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; import org.openqa.selenium.WebDriver; import ...
0
votes
0answers
25 views

Display tracked changes in Jubula

I'm using Jubula 8.0 (Eclipse Feature 2.3) and I've turned on the 'Track changes' check-box for a project. Where can I see the changes that anyone made? Is there a CVS/SVN-styled View in Eclipse to ...
0
votes
1answer
76 views

How to run data driven testing using testNG in selenium

I am using testNG framework and tried to import data from excel sheet in my local. If I run the code as simple java application then its running but with testNG its not public class NewTest { public ...
3
votes
2answers
106 views

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

I want to know what kind of test cases we can not automate using selenium webdriver. I do not want to use any 3rd party tool (Autoit, etc..).
3
votes
2answers
105 views

key points for choosing a framework in selenium webdriver - Java

My query is related to this Choosing framework type for selenium RC/Webdriver I am a beginner in Selenium and want to know how to select or choose a framework in Selenium Webdriver. What are the key ...
0
votes
1answer
62 views

How to make the opening of browser(all test in one browser) static in testng for selenium [duplicate]

I am using selenium and testNG framework for my project. Now what is happening is each class is opening up a browser and then run its methods, eg, if I have five classes, then five browsers will open ...
0
votes
1answer
97 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 ...
2
votes
2answers
99 views

How to ignore/accept/avoid SSLHandshakeException while trying to check for broken links?

I'm trying to verify if a link is throwing response code other than 200. Link that I'm trying to verify is https:// and after process has run, it throws this error -- ...
0
votes
3answers
99 views

Selenium: dealing with intermittent cases of element not found

Sometimes it works and sometimes it doesn't. I've tried implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); I've tried explicit wait: ...
2
votes
2answers
156 views

How and where to store dynamic result/data using webdriver java

I want to know "How and where to store dynamic (Search results) result/data", I am getting the results and not sure what to do next. Also, after saving these results I want to use this in another ...
-1
votes
1answer
38 views

Selenium for MacOS Setup

I wanted to know if there is a good source for setting up Selenium in Eclipse on MacOS. I have MacOS 10.9.4.
6
votes
5answers
567 views

Want to switch from software development to testing domain

I have 4 years of experience in software development. But I did software manual testing more than software development. I am good in finding tough functionality related bugs. I have passion for ...
0
votes
2answers
70 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
4answers
105 views

How to work with changing element id in the html code

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
1
vote
1answer
171 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 ...
4
votes
3answers
396 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
2answers
62 views

Load Testing Options for Clojure Application

I have a mostly back-end, non-user facing web application that I need to have load tested. I was wondering what the options were that are tailored for my use case. It needs to be a load testing ...
2
votes
2answers
63 views

Robot framework installation

I want to learn robot framework with java and python, but not sure how to use this?. I searched over the net but did not get steps to instal robot framework. I installed only selenium2library file in ...
1
vote
1answer
446 views

Selenium webdriver java with jdbc

I am using selenium webdriver with Java jdbc. Below are my queries. First: I am trying to login to the application with username and password from database (Using SQL Query). I am getting the ...
-1
votes
3answers
158 views

how to get the count of elements in list box

working on selenium + java,. can any one help me... I have a drop down list box, and need to get the number of elements in the list box. <select id="id"> <option ...
0
votes
1answer
45 views

Testing Verify Method Call Without Argument In Test Class

I have a class which takes a message with payload String. The payload is then split and used to create an Entity which is passed to DAOInterface to persist. How can you test the call ...
0
votes
1answer
83 views

Using Jtidy to parsing HTML

I am using Jtidy I pass an InputSteam and then I tried to validate whether or not the XHTML code in the InputSteam is valid. InputStream s = new ...
0
votes
5answers
139 views

Validating HTML code

I am testing a class that takes 1 string and generates an HTML page around that string. So I pass it the string Math and it returns to me a whole HTML page as a string containing that Word and with ...
1
vote
1answer
285 views

Testing ExtJS UI with WebDriver

Our Web app is using ExtJS framework for rendering UI. However, ExtJS-rendered UI is hard to test automatically because: For most clickable elements, ExtJS uses generated ids like "ext-gen-345" ...
2
votes
1answer
145 views

Selenium opens browser and loads page, then stops

Selenium opens browser and loads page, then stops. I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've ...
0
votes
2answers
423 views

Navigate to previous page using Selenium

I know there's a driver.navigate().back() but that's not what I'm looking for. Let's say a user is on PageA, they click on a submit button which takes them to a submit page. On that page, there ...
0
votes
1answer
95 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
2answers
1k views

Selenium WebDriver with Java: How do I read username and password from an excel file to Java to use in website testing [closed]

I am using Selenium WebDriver with Java. I have an Excel spreadsheet with two columns, one for username and another for password. I need to read those values and use them to create new users.
0
votes
1answer
48 views

dragAndDropBy() function Encountering Exception

I am a beginner in Selenium and m trying to automate the drag and drop functionality. But everytime I am trying to execute the dragAndDrop() functionality, Eclipse is Giving off Exception. PF the ...
0
votes
1answer
405 views

How to pass two strings (Username and Password) one by one in the two different text fields (Username and Password) in webdriver (Java)

I am having two different Strings by name username and password. And i want to pass these string values one by one (ONLY one value from username and one value from password) into username and password ...
1
vote
1answer
355 views

selenium wget download file

I'm testing a web app with Selenium and I actually need to download a txt file during my test. But this seems impossible because a pop up appears asking to save the file. So, this blocks the progess ...
0
votes
1answer
312 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: ...
1
vote
1answer
122 views

Is it possible to group java selenium tests in a larger utility class for reuse?

So say you have a made up flight booking application. I'm speaking on a very high level; because i'm more concerned with the design of these java objects. We're creating tests that have these classes ...
0
votes
3answers
13k views

How to iterate a list of WebElements and print the values one by one to perform some action

List<WebElement> allLinks = driver.findElements(By.xpath("//div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' or @class='datepickerSaturday' or ...
1
vote
2answers
1k views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know, that how we can take a series of screenshots / a video recording for a screen using Selenium 2 / Web Driver with JAVA ? Please provide the answer or the lick where I can get ...
2
votes
2answers
886 views

Where I can get all the commands related to Web Driver / Selenium 2

I am not able to find all the commands for Web Driver / Selenium 2. Please help me providing the same. Thanks
2
votes
1answer
2k views

Fieldlevel validation in Selenium Webdriver (Java)

how to test validations for "FIRSTNAME" textfield. Below are the details and code. URL: http://www.vrlbus.in/vrl2013/register_customer.aspx Special chars: #!#!#$@#!$@!$@#$%#%^#$^^&%&$%* ...
1
vote
1answer
6k views

How to compare values from the list or from dropdown list in webdriver (Java)?

Below is my code and html code, please let me know how to compare values. When i executed i am getting same result (Mateched) for multiple times. But i want to compare and display result as "Matched" ...
0
votes
1answer
265 views

Is parameterized constructor (Java) supported in selenium webdriver?

I was asked in an interview whether Selenium Webdriver supported parameterized constructors. Example: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...
1
vote
10answers
5k views

Should I learn Python or Java to get into test automation? I am new to programming

Should I learn Python or Java to get into test automation? I'm new to programming. Please share your thoughts or links to any useful information.
1
vote
2answers
87 views

Assertions and Outputting Specific URLs

Here's what I've done so far. @Test public void test() { String[] list = {}; for (int i=0; i<list.length; i++){ driver.get(baseUrl + "/" + list[i]); boolean ...
0
votes
1answer
407 views

Using Selenium webdriver with chrome browser - Junit or java - how to upload a file from desktop(or any folder in pc) to application [duplicate]

Using Selenium webdriver with chrome browser for automation - Junit or java programming - how to upload a file from desktop(or any folder in pc) to application
0
votes
4answers
807 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 = ...
1
vote
1answer
258 views

How to access element inside iframe in Java?

I want to get an element's id attribute that is inside of an iframe through Java. How do I access an element inside of an iframe in Java?