Selenium WebDriver for Java

Course code: STSE01

Duration:       40 Hours

Selenium WebDriver is an open-source tool that is used for test automation. It is licensed under Apache License 2.0. Selenium is a suite of tools that helps in automating only web applications. This tutorial will give you an in-depth understanding of Selenium and its related tools and their usage. By taking this course, you'll gain hands-on experience to automate web based application testing using Selenium.

WebDriver is the most widely implemented web application automation tool. WebDriver skills are high in demand. Having necessary knowledge of this tool and use patterns, can increase your effectiveness in automation.

Audience

This course is designed for software testing professionals who would like to learn basics of the Selenium through practical examples. The course contains enough ingredients to get you started with Selenium from where you can take yourself to higher levels of expertise.

Prerequisites

No prior Java programming experience is required. You will be taught from basics.

Objectives

By completing this course you will gain practical knowledge on:

  • Basic programming knowledge in Java
  • WebDriver installation and its various components (API)
  • WebDriver capabilities, verifications and assertions
  • Use Selenium Grid
  • Learn Page Object Model (POM) and JUnit
  • Learn and use Maven
  • Learn WebDriver Framework and implement to use.
  • Acquire the necessary skills for effectiveness in automation, using WebDriver.
  • 1. Java Concepts

  • Introduction to Java
  • Setting Development Environment - Eclipse
  • Walk through of Java concepts
  • Introduction to Java Data Types
  • Taking Input from End User
  • Numerical Data Type and Numerical Operators
  • Boolean Data Type and Operators
  • Conditional Statements [IF], and Loop [While]
  • Conditional Statement[SWITCH]
  • Loop [FOR]
  • String Data type and functions
  • Command Line Parameters
  • Arrays
  • Hash Tables/ Map Object
  • Regular Expression
  • File Handling
  • Java OOPs Concept
  • Concept of Classes and Objects in Java
  • Java Programs
  • Concept of Packages in Java
  • Exception Handling
  • Debugging
  • 2. Introduction to Selenium

  • Need of Test Automation
  • Why Open Source Test Automation
  • Introduction to Various tools of Test Automation
  • Introduction of Selenium
  • Selenium Components
  • First Record and Replay of Scenario in Selenium IDE
  • Introduction of Web Technologies – HTML, XML, XPath, CSS and DOM
  • Locators in Selenium
  • Introduction of Selenese Command Types
  • Selenium Action Commands
  • Verification and Assertion Commands
  • Store and StoreEval – Accessor Commands
  • Creation of Test Suite
  • Debugging IDE Script
  • 3. Selenium WebDriver

  • Overview of WebDriver
  • Introduction to browser specific drivers
  • Setup WebDriver package on system for eclipse
  • Set up firebug for Firefox
  • Exporting pre-recorded test scenario in IDE to WebDriver, and executing it.
  • Webdriver class files, and their methods
  • Automating different HTML Elements text fields, buttons, links, check box, drop-down, etc.
  • Verifications and Assertions
  • Parameterization
  • Synchronization
  • Desired Capabilities and IE
  • Handling Web Table
  • Handling Drop Down elements
  • SwtichTo Command -Handling Frames, Popup Windows, Alerts
  • Brief about Ajax and how to handle Ajax with WebDriver JDBC –Introduction
  • Components of JDBC
  • Set JDBC with MYSQL Connector for Java Project
  • JDBC with MySQL
  • 4. Selenium GRID
  • Introduction of Selenium Grid
  • Usage of Selenium Grid, executing same test on different browsers
  • 5. POM

  • Introduction to Page Object Model
  • Usage of Page Object Model for DemoSite
  • Introduction to JUnit
  • Introduction to various Java APIs – Log4J, Apache POI, XML Beans
  • Quick Snapshot- Create Logs
  • Quick Snapshot- Read and Write to Excel Files
  • 6. Maven

  • What is Maven and Why Maven?
  • Installing/Configuring Maven
  • Archetypes in Maven
  • Creating maven project through command line
  • POM.xml
  • Importing Archetypes
  • Maven Repositories
  • Importing the maven project into eclipse
  • Building a selenium project and running it through Maven
  • 7. Framework

  • What is Framework and Types of Framework
  • Demo of Keyword Driven Framework for Selenium
  • Demo of Hybrid framework for Selenium
  • Course Review