Home




Welcome to selenium99 automation tutorials. In this selenium tutorials, you will learn selenium basics and advanced concepts, core java basics and selenium interview questions.

What is Testing:

It is a process of testing the software to verify that it meets the specific user requirements and to find defects or errors in the application under test. It is of two types.

  1. Manual Testing
  2. Automation Testing

Disadvantages of Manual Testing:

  • It is very time-consuming.
  • For each and every sprint or release you have to run the same set of test cases.
  • Selenium is a free and open source test automation tool for testing web applications.
  • Results were less accurate.
  • In case of database-related testing, comparing huge amounts of data is not possible.

Automation:

Automation means using a software to do the operations like login, page verification, report comparisons, clicking on a link or button etc. It involves automating the manual process to reduce the effort, time and cost. Automation Testing is done by third-party tools like QTP, Selenium, TOSCA, and RFT (Rational Functional Tester) etc.

Selenium can be installed on most of the operating systems like

  • Windows 
  • Linux 
  • Apple iOS   etc.

Cross browser testing is possible using selenium i.e., we can run the test scripts in different browsers like

  • Firefox 
  • IE 
  • Chrome 
  • Opera 
  • Safari  etc.

Selenium is a suite of tools having various testing functions used to test all types of web applications. One of the key features in selenium is “Multi-browser testing“.

Selenium: 

Selenium is a suite of tools. It has four components.

  1. Selenium Integrated Development Environment (IDE)
  2. Selenium Remote Control (RC) / Selenium 1
  3. Web Driver
  4. Selenium Grid


Selenium IDE:

It is very simple to use and it is script recording tool. It is implemented as an extension of chrome and firefox and allows us to record, edit and debug the scripts.

Important features:

  • Recording and playback of the scripts is easy.
  • Web elements or fields will be identified by using IDs, Links, Names and Xpaths etc.
  • Debugging and setting break points is easy.
  • Firebug is used to locate the web element values.

Selenium RC:

It allows us to write automated test scripts for web UI. Many programming languages are used to write scripts. Selenium RC has two parts.

  1. Server
  2. Libraries

Server – Browser related actions like launching and closing of the browsers are taken care by the server.

Libraries – Used to write automated scripts in desired programming language.

Selenium WebDriver:

It is a newly implemented major change in the selenium suite. Users can run the scripts locally or remotely (with the help of selenium server). Selenium WebDriver is simple and more concise programming language and it also addresses the limitations of selenium RC.

Selenium2 = Selenium1 + WebDriver

Advantages:

  • Open source
  • It directly interacts with the browser.
  • Selenium supports different programming languages like Java, dotnet (.net), Python, PHP, Pearl and Ruby.
  • Selenium WebDriver supports HtmlUnit driver.
  • Easy of implementation.

Disadvantages: 

  • It can not support Internet Explorer (IE) driver.
  • In built/default results generation/reports generation capability is missing.
  • Bar codes and CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) can not be automated.

 

 

Click here to learn more about selenium.

Learn How to select a dropdown using selenium web driver


Learn How to find website rank using a particular keyword using Selenium WebDriver


Learn TestNG and annotation.


Learn Top 25 selenium interview questions.


Learn How to handle mouse hover actions using Selenium WebDriver.


Learn WebElement actions in Selenium.


Learn How to take screenshot using Selenium WebDriver.


Learn How to handle alerts in Selenium WebDriver.


Learn Navigate commands in Selenium WebDriver.


  Learn Implicit wait and Explicit wait in Selenium.


Learn Convert string to int in java.

 

Tags: Selenium tutorials, Selenium WebDriver, Selenium Interview Questions