JAVA FOR SELENIUM WEBDRIVER

 

  • JAVA | Java for Selenium

    • Java Introduction
    • Types of applications in Java
    • Main Features of Java
    • Why Java for Selenium WebDriver
    • How much Java is required for Selenium
  • JAVA | Download Install and Setup

    • Download and Install Java
    • Set Environment Variables
    • Set JAVA_HOME System variable
    • Verify Java installed or not using cmd.
  • JAVA | First Java program

    • First Java Program
    • Description of First Java Program
  • JAVA | Data type

    • Data Types in Java
      • Primitive data types
      • Non-primitive data types
    • Example of Primitive DataType
  • JAVA | Variables

    • Types of Variable in Java
      • Local variables
      • Instance variables
      • Class / Static variables
    • Example of Variables in Java
  • JAVA | Access Modifiers

    • Access Modifiers in Java
      • Default
      • Private
      • Public
      • Protected
    • Example of Access Modifiers in Java
  • JAVA | Basic Operators

    • Type of Operators in Java
      • Basic Arithmetic Operators
      • Assignment Operators
      • Auto-increment and Auto-decrement Operators
      • Logical Java Operators
      • Comparison (relational) operators
      • Bitwise Operators
    • Example of Operators in Java
  • JAVA | Class and Object

    • Description of Class / Object in Java
    • Syntax of Class / Object in Java
    • Example of Class / Object in Java
  • JAVA | Decision Making

    • Decision making statements in Java
      • if Statement
      • if…else Statement
      • if…else…if…else Statement
      • Nested if statement
      • switch statement
  • JAVA | Loop Control

    • Loop cotrol Types in Java
      • while Loop
      • do…while Loop
      • for Loop
      • for each loop
      • Java Continue Statement
      • Java Break Statement
  • JAVA | Constructors

    • Introduction of Constructors in Java
    • Characteristics of Java Constructors
      • Default constructor (no-arg constructor)
      • Parameterized constructor
    • Example of Constructors in Java
  • JAVA | String

    • Description of String in Java
    • Example of String in Java
    • String Methods in Java
    • Example of String Methods in Java
  • JAVA | Array

    • Types of Array in Java
      • One Dimensional Array
      • Two Dimensional Array
    • Example of Arrays in Java
  • JAVA | Methods

    • Introduction of Methods
    • Syntax of Method
    • Static or non static method
    • Input Parameters To Method
    • Example of Method
  • JAVA | this keyword

    • Introduction of this keyword
    • Syntax of this keyword
    • Example of this keyword
  • JAVA | super keyword

    • Introduction of super keyword
    • Usage of super keyword
    • Super Keyword with Variables
    • Super Keyword with Methods
    • Super Keyword with Constructors
    • Example of super keyword
  • JAVA | final keyword

    • Introduction of final keyword
      • final variable
      • final method
      • final class
    • Example of final keyword
  • JAVA | static keyword

    • Introduction of static keyword
      • static variable
      • static method
    • Example of static keyword
  • JAVA | Inheritance

    • Introduction of Inheritance in Java
    • Why Use Inheritance in Java
    • Types of inheritance in Java
    • Example of Inheritance in Java
  • JAVA | Polymorphism

    • Introduction of Polymorphismin Java
      • Method overloading (compile-time polymorphism)
      • Method overriding (run-time polymorphism)
    • Example of Polymorphismin Java
  • JAVA | Abstraction

    • Introduction of Abstraction in Java
      • Abstract class (0 to 100% abstraction)
      • Interface (100% abstraction is received)
    • Example of Abstraction in Java
  • JAVA | Encapsulation

    • Introduction of Encapsulation in Java
    • Benefits of Encapsulation in Java
    • Example of Encapsulation in Java
  • JAVA | Exception handling

    • Introduction of Exception handling in Java
      • Checked Exception
      • Unchecked Exceptions
      • Error
    • Exception Handling Keywords
      • try
      • catch
      • throw
      • throws
      • finally
    • Example of Exception handling in Java
  • JAVA | Collections

    • Introduction of Collections in Java
      • ArrayList
      • HashMap
    • Example of Collections in Java

Overview of Java for Selenium WebDriver

 

Data Types in Java:

  • Integer
  • Short
  • Long
  • Character
  • String
  • Float
  • Boolean

 

Java Modifiers for Classes, Variables, and Methods:

  • Access Modifiers : (Default, Public, Private and Protected).
  • Non Access Modifiers : (Static, Final, Abstract, Synchronized etc…).

 

Type of Variables in Java:

  1. Local Variables.
  2. Instance variables.
  3. Class / Static Variables.

 

Operators in Java:

  • Arithmetic Operators.
  • Relational Operators.
  • Bitwise Operators.
  • Logical Operators.
  • Assignment Operators

 

Conditional Statements:

  • If Statement.
  • Switch Statement.

 

Usage of Conditional Statements:

  • The statement is correct when executing a block of statements.
  • When the condition is correct, then execute a block of statements, otherwise execute one more block of statements.
  • Choose from several alternative options, for e.g: Else IF.
  • Execution of a block of statements when more than one condition is true e.g: nested If.
  • Choose from several alternative options e.g: Switch statement.

 

Loop Statements:

  • For loop.
  • While loop.
  • Do While loop.

 

Arrays in Java:

  • Generally, the array is a collection of elements of the same type.
  • In Java, Array is an object that contains elements of the same data type.
  • The Java array index is based, index starts with zero.
  • The length of the array is set when the array is created and the length of the array is fixed.
  • Each item in an array is called element.

 

Exception handling In Java:

  • An exception is a program that occurs during the execution of a program which disturbs the normal flow of instructions.
  • Exception in Java is a powerful mechanism for handling run-time errors in order to maintain the normal flow of the program.

 

Java Object Oriented programming System (OOPS) concepts:

  • Inheritance
  • Polymorphism
  • Abstraction
  • Encapsulation