Web Automation by Watir

2,000.00 1,000.00

Watir is an open source Ruby library for automating tests. Watir interacts with a browser the same way people do: clicking links, filling out forms and validating text. Watir was originally designed to support Internet Explorer only, and was originally designed as a ruby library, meaning you had to use ruby.

Watir’s most useful feature was, and is, it’s neat API, most likely that way because it was designed by Testers,  Also Watir has been traditionally had more functionality than Selenium, because it was designed to interact directly with IE instead of using JavaScript, as there are limits to what you can do with JavaScript

Coverage in this course: 

  1. Basic to Advance ruby scripting
  2. Basic to advance features of Watir
  3. Cucumber with Gherkin
  4. Test Unit


Ruby Introduction
• Course Agenda
• Ruby Introduction
• Setup Ruby Environment
• Ruby Interactive Environment
• Ruby Gems
• First Ruby Program
• Print Data | Get Input and Comments
• BEGINNING and END block
Jump into detailed Programming
• Class and Objects
• Working with Methods – Part 1
• Working with Methods – Part 2
• Working with Methods – Part 3
• Instance and Class Method
• What is Constructor?
• Constructor with argument
• Why & where to use constructors
Condition Handling
• Condition Handling | If – else
• Condition Handling | If – else if – else
• Condition Handling | Nested If
• Condition Handling | with Conditional OR
• Condition Handling | with Conditional AND
Different types of Variables
• Variable Types
• Local Variable
• Instance Variable
• Class Variable
• Global Variable
• First Case on Chrome
• First Case on Firefox
• Work on Textbox
• For Loop Basics
• For Loop – break keyword
• For Loop – Next keyword
• For Loop – Redo keyword
• While Loop
• Until Loop
• Each Loop
• Programming: Display triangle – Part1
• Programming: Display triangle – Part2
• Array Basics
• Create Array | Insert | Fetch
• Common methods of Array Class – Part1
• Common methods of Array Class – Part-2
• Each Loop with Array
String Handling
• What is String
• String Functions – Part 1
• String Functions – Part 2
• String Functions – Part-3
• String Functions – Part 4
Working with Hash
• What is Hash
• Different approaches to create hash
• Common methods of Hash class
• Hash: Using symbol as key
• Each Loop with Hash
File Handling
• Reading data from file
• Write data to File
• Read and Write Data
• What is Module
• Module Methods
• Class inside module
• Sub modules
Exception Handling
• Exception Handling
• Multiple rescue block
Excel Read/Write
• Read data from Excel Sheet
• Write Data to Excel Sheet
OOPS Concept
• Inheritance
• Overriding
Advance Ruby Options
• Set relative path
• Configuration File | YAML File
Setup environment for Automation
• Setup Ruby Mine
• Ruby Mine Environment
• Setup Watir Webdriver Gem
Start Automation
• Trigger Chrome Browser
• Trigger Firefox Browser
• Maximize browser window
• Browser Back, Forward and Refresh button
• Close Browser
Commonly used methods
• Fetch complete Page Text
• Fetch Page URL
• Fetch Page Title
Element Locator
• What is Element Locator
• Locate Element by ID
• Locate Element by Name
• Locate Element by Class
• Locate Element by Link
• Locate Element by Partial Link Text
Element Locator Advance: XPath
• What is Xpath
• Generate Xpath Part-1
• Generate Xpath Part-2
• Generate Xpath Part-3
Work on Elements
• Work on Text box
• Work on Button
• Work on Link
• Work on Radio Button
• Work on Dropdown or List
Advance Interaction Options
• Perform keyword operations
• Press combination of keys
Working with Test::Unit
• What is Test::Unit
• Test Case in Test Unit
• Setup method in Test Unit
• Teardown method in Test Unit
• Multiple test case in a class
• Test Unit Assertions
Write Test Case using Test Unit Framework
• Create Test Case: Setup and Teardown
• Write test method
• Add Assertions
BDD Testing with Cucumber
• What is TDD
• What is BDD (Behaviour Driven Development)
• Difference between TDD and BDD
• BDD Tool: Cucumber Basics
Understand Gherkin language keywords
• Gherkin: Feature Keyword
• Scenario Keyword
• Given Step
• When- Then Step
• Background
• Step Argument
• Scenario Outline
• Tags and Comment
• Setup Configuration Files
• End to End Project Structure
• Create Base Files
• Create Assertions
• Create Pages
• Test Cases


There are no reviews yet.

Be the first to review “Web Automation by Watir”

Your email address will not be published. Required fields are marked *

Select your currency