January 19, 2019

Selenium WebDriver Tutorial



What is Selenium?
Selenium is portable open source automation testing framework for web applications and web based tasks. It is licensed under Apache 2.0. This tutorial will help you understand Selenium and its related tools. We will guide you step by step.
Audience:
This tutorial will help both: Beginners and Professionals. We will move step by step to make it more easy for starters..
Pre-Requisite:
You must be familiar with basic programming concepts. Selenium offers different languages but in this tutorial, we will explore Selenium with JAVA so, refresh Java. J Happy Learning!

What we’ll be learning:
What’s Selenium all about?
a.     Introduction to Selenium
Selenium IDE
a.     Installation of Selenium IDE
b.    Record your first script using Selenium IDE
c.     IDE Locating Strategies
JAVA for Selenium (Basics)
b.    Data Types and Variables
c.     Control Flow Statements
d.    Arrays
e.     Exception Handling
f.      IO Operations and File Handling
g.     Classes and Methods
h.    Inheritance
i.      Polymorphism
j.      Abstraction
k.    Encapsulation
l.      Constructors, Data Type Conversions, etc
m.  Interfaces
Selenium Webdriver (Basic)
b.    Write your First Test Script Using Webdriver
c.     Gecko driver
d.    Execute program with different browsers
e.     Locating Strategies
f.      Handling Elements (drop down, radio button, checklist, text box, space, enter,mouse hover, pagination, etc)
g.     Handling Operation on Web Elements (Page, Button, Link, Edit Box, Text Box, Drop Down Box, List Box, Combo Box, Radio Button, Check Box, Web Table and Frame Etc)
Selenium Webdriver (Advanced)
a.     Handling Calendar Selection - working with date pickers
b.    Handling Autocomplete
c.     Handling Capturing screenshots
d.    Handling Cooking
e.     Handling Mouse Operations
f.      Handling read/write in excel files
Reporting
a.     Extent Reports
Selenium and Test NG, JUNIT
a.     Brief Introduction of TestNG – TestNG Annotations
b.    Installation of TestNG in Eclipse IDE – Selenium WebDriver Tutorial
c.     Introduction of TestNG framework – Advantages of TestNG over Junit framework
d.    Use of JUnit Annotations in Selenium WebDriver Automation Script
e.     Introduction to JUnit Annotations – Learn JUnit annotations used for your Selenium WebDriver automation
Advanced Webdriver
a.     How to handle cookies in Selenium Webdriver
b.    How to handle date Time Picker in Selenium Webdriver
c.     How to handle Screen shots in Selenium Webdriver
d.    How to read/write excel files in Selenium Webdriver
Selenium Interview Questions







How to Install Java in simplest way.

This tutorial will help you to install Java with Eclipse by following few simple steps:
1.      Install and configure Java
2.    Install Eclipse

Install and Configure Java

1.      Download JDK from here and install
2.    Configure JAVA Environment Variable
3.    Navigate to my PC> properties> Advanced System Settings > Environment Variables:

4.    Add New System Variable as in image :

5.     Now Navigate to PATH variable under system variables section and add: %JAVA_HOME% /bin; as in image :

6.    Navigate to Start >Run> cmd. it will open command prompt. Type:  Java –version.

7.     Now check path variable:  type command: Echo %PATH% 

Note:  It will display path, you can check your set path for java is displayed or not

JAVA installation and path variable setting is done successfully. Let’s move to Step 2

Install Eclipse


1.     Download Latest version of Eclipse from here.
2.    Install it
3.    Open and Provide work space
4.    Create New Project : File > New > JAVA Project


5.  Click Finish and Project will be created in Package Explorer.
6.  Right click on Src folder > New > Package. Provide name . it will add a package named: Test as in image.
     

7.  Right click on Package: test_Java > New > Class. it will show following:

8.  Provide class name and Click Finish.
9.  Write code and execute.

  

Eclipse installation with JAVA is done successfully.

Now we have setup JAVA using Eclipse, its environment is ready. we will explore basics of JAVA.  In next article, we will learn about: "Data Types and Variables"in JAVA.
, , ,