Selenium WebDriver – Handling Javascript Popups

In the latest release of Selenium 2.0 WebDriver Alert class is implemented.  Get the latest release of Selenium 2.0 from this Download link.  Download selenium-server-2.0rc3.zip and unzip into \Libraries folder.  Add “selenium-server-standalone-2.0rc3” to the classpath (Add the External Jar to buildpath of the project’s properties in Eclipse IDE). Here, I have taken an example HTML …

Java – Conditional Statements

Java being a programming language provides conditional statements to handle execution of a set of statements based on the conditions. if if-else switch See example code below: package com.selftechy.learnjava; public class TestCase { public static int tcCount; public int stepcount; public String status; public int getStepCount(){ return stepcount; } public String getStatus(){ return status; } …

Java – Static and Instance Variables

Object Oriented Programming has a concept of instance variables.  This type of variable is declared in a class and whenever an object is created of that class, a copy of the variable is created.  Instance variable is accessed as “object.variable” Static variable is also declared in a class but is created only once and used …

Java – Inheritance

Knowledge of inheritance really helps if you are using Java / JUnit / TestNG frameworks for Test Automation.  Inheritance is an Object Oriented Programming concept. If a class which already created contains some variables and methods, if we want to add some more features to the existing class by adding some more functionalities then we …

Java – Classes, Objects, and Methods

Classes – To simplify the definition we can say class means it is a category.  For example, mobile handset can be a class (i.e. MobileHandSet) and from which we can create many objects having the same functionalities.   Some more examples of class might be Test Case, Bugs, Log, Exception, Test Book, etc. Objects – Object …

Selenium – Learn Java to Enhance Test Automation Skills

Selenium is a Test Automation tool for Web Applications.  Selenium IDE is an Add-on for Mozilla Firefox.  Using Selenium IDE we can record and playback tests.   Recorded tests will be in a table format.  This can be exported into various programming language formats such as C#, Java / JUnit, Groovy, PHP, Perl, Python, Ruby, etc. …

Ant – Build Process Automation

Software build is the process of creating and packaging binaries for the software release.  To make the build process completely consistent and repeatable, the process should be automated.  There are various tools available for the build process automation. Build tools are used for the process of automating mundane activities such as: Compiling source code Packaging …

Learn Selenium Step by Step

Selenium is an open source web application Test Automation tool.  Learning Selenium is very easy.  Anybody who worked on manual testing can easily learn Selenium.  We will try to explore how to learn Selenium Step by Step. Selenium has three main tools – Selenium IDE, Selenium RC, and Selenium Grid. First let us have a …