Book Image

Selenium Essentials

By : Prashanth Sams
Book Image

Selenium Essentials

By: Prashanth Sams

Overview of this book

Table of Contents (12 chapters)

Hybrid-Driven framework

A combination of the Data-Driven and Keyword-Driven (or Modular-Driven) frameworks is commonly said to be a Hybrid-Driven framework. In general, a Hybrid-Driven framework is a collection of two or more frameworks that can be customized and accessed by any user. For example, a combination of PageObjects, a Keyword-Driven framework, a Data-Driven framework, an object repository, and reporting listeners provides a powerful Hybrid framework.

Let's take a tour of the framework that can be helpful as a part while building a Hybrid approach.

Create a driver class ( that loads user-defined methods by invoking Selenium WebDriver functions:

public class loadDriver {

  private static WebDriver driver;

  public static void Firefox() {
    driver = new FirefoxDriver();
    System.out.println("Firefox browser is initiated...");
  public static void IE() {
    driver = new InternetExplorerDriver();