Using Selenium and Practical Workshop


Course Description

Three day course on Selenium 3.0. The first two days are instructor led and the third day provides an opportunity for hands-on learning, putting into practice the learning from the course. Selenium allows both developers and testers to automate tests against applications and execute them against multiple browsers. This course aims at providing a solid foundation to the attendee in understanding automated testing using Selenium. The objectives of this course are not only to teach what the tool is capable of doing, but to focus on the practical steps required to make automation using Selenium work. The course provides a hands-on walkthrough to allow attendees to understand the steps in making Selenium function in the real world. The consumer is putting increasing demands on organisations to deliver applications across many devices, browsers and platforms. With Increasing pressure being put on test tool budgets, IT professionals are looking to the open source market for test automation tools.


Prerequisites

Although it is beneficial that attendees have a coding background (ideally in Java), this is not essential. The code examples used during the course are available in the training environment for attendees to access.

Course Objectives

On completion of the course, attendees will understand how to configure Selenium and how to automate tests using the tool.

Introduction

Automation Overview Core skills taught on the course

Selenium IDE

Overview of Selenium IDE and available add-ins Recording and replay of a Selenium IDE Test Object recognition tools ChroPath. Assertions and Verifications Exporting a Selenium IDE Test as Java

Creating Selenium Scripts in IntelliJ IDE

Configuring a new C# project in IntelliJ Creating a basic automated test and a test suite Executing a test and test suite through IntelliJ Importing a test from Selenium IDE

Selenium WebDriver

Components of Selenium Webdriver in JUnit Annotations in WebDriver Interacting with the AUT: Object locators Actions on WebElements

Data Driving Selenium Tests

Use of data sources (e.g. Excel spreadsheets, CSV files, databases) to provide increased maintainability flexibility.

Debugging and coding

Setting breakpoints Retrieving values on-the-fly Stepping through code Observing the Application under Test Making deductions Building and testing a hypothesis

Page Object Model

Introducing the Page Object Model Accessing the page objects in a test script

Object Recognition

Object recognition is one of the commonest issues automation testers have to face. A number of techniques and approaches can be used, including: Why it is difficult to identify an object. Choice of element locator Use of multiple locator properties Use of Xpath or CSS syntax and patterns Use of ordinal identifiers Using ChroPath to write more stable locators Descriptive programming for dynamic objects How to navigate web iframes

Selenium Workshop

Selenium IDE: Creating a new test IntelliJ: Importing Selenium test into a newly created Java project Page Objects: Converting the script to use them Asserts: For both positive and negative test Data driving: simple and complex.


Schedule

NameDateLocation 
Using Selenium and Practical Workshop 2024-02-26 Online