
Explore WebdriverIO, a free open-source JavaScript end-to-end automation framework that lets you build simple to complex web tests across multiple operating systems with a robust API and supportive community.
Explore the WebdriverIO API by navigating the official site, reviewing docs, and using browser commands like url and click to build reliable tests, assertions, and reports.
Navigate the WebdriverIO community through the official website, GitHub discussions, a community channel, and Stack Overflow, joining 1.5 million people across 100k+ communities for support.
Install Node.js, the JavaScript runtime WebdriverIO relies on, selecting the LTC version for your OS. Complete the installer, then verify with node -v in a terminal or command prompt.
Install and configure Visual Studio Code, then enhance it with extensions like prettier, material icons, and JavaScript code snippets. Customize settings, colorize brackets, and reload the window to apply changes.
Install and verify Google Chrome and Firefox, then keep them up to date by checking for updates via Help about Google Chrome and Help about Firefox.
Install gates to enable the gates command shell in Visual Studio Code, enabling bash terminals alongside PowerShell on Windows, and learn to push and pull code to a GitHub repository.
Create and configure the project folder, then initialize a package.json to serve as the heart of the WebdriverIO automation framework, enabling dependencies from the web.
Install webdriver io packages with npm, generate the wdio configuration file, and configure mocha as the backend, babel, the spec reporter, and the chrome driver to build your automation framework.
Discover an easy method to keep your dev dependencies up to date for WebdriverIO projects, using npm-check-updates to check and apply updates to package.json.
Configure the wdio testrunner with its unique config file, map test specs, and enable parallel execution across chrome and firefox. Use moca, spec reporter, and hooks to enhance automation.
Create automated tests for the system under test at the webdriveruniversity site, navigate multiple links, and validate the contact us page and login area to practice automation testing.
Learn how mocha structures Node.js tests with describe and it, and use before, after, before each, and after each hooks to manage setup and teardown in WebdriverIO automation.
Learn to capture test requirements with MOCA, create a contact us spec using describe and it, and define positive and negative submission scenarios for a web form.
Learn how to use webdriver io to perform test actions, set up autocomplete, and navigate to the contact us page using a base URL and relative paths.
Learn how to extend a WebdriverIO test by filling a contact form—set first name, last name, email, and message, click submit, and validate the resulting message using dynamic selectors.
Create and use unique selectors to locate form fields and the submit button, enter data with setValue, submit the form, and validate a success message with an expect assertion.
Tackle a negative test scenario with web driver IO by filling first name, last name, and message, submitting without an email, and running the test with only this scenario.
Implement the contact us test flow in WebdriverIO: fill first name, last name, and comment, submit, and assert the no-email submission message is shown, using before hooks and async.
This recap reviews positive and negative automation tests that validate messages after form submission, and shows how the dry principle and before each hook prevent code duplication.
Explore how the wdio configuration file governs test execution, and inspect the browser object by printing its session details, browser name, driver, and timeouts during before each hook.
Explore the difference between sync and async JavaScript in WebdriverIO and learn why sync mode is deprecated in favor of async, with practical test examples.
Understand the difference between synchronous and asynchronous JavaScript in web driver io, and why async/await matters as sync mode is deprecated in node.js with npm and package.json.
Explore a synchronous JavaScript example showing one-at-a-time execution, with two functions, console logs, and an alert that blocks until the user clicks, illustrating the bottleneck of synchronous code.
Explore asynchronous JavaScript and how non-blocking code executes alongside synchronous code, using a setTimeout example to show execution order, console output, and delayed alerts.
Demonstrate the difference between sync and async in webdriverio with a mocha test that navigates to webdriveruniversity.com, asserts the url, and shows why async/await is required as sync mode is deprecated.
Explore locating web elements with selectors using CSS and XPath, through practical examples and DOM concepts. Identify elements by id, class, attributes, and text to build robust automation tests.
Learn how to use WebDriverIO's locate element command to fetch a single element with CSS selectors or XPath, build tests, and handle dynamic pages by simulating clicks, navigation, and pauses.
Learn to locate multiple elements with WebdriverIO's findElements using a table header selector, collect titles into an array, and validate them against an expected array with expect to equal.
Explore the WebDriverIO pause command and waiting strategies, using beforeEach hooks and selectors to pause execution, handle element visibility, avoid fixed timeouts, and improve test reliability.
Leverage webdriverio waitForClickable to wait for an element to be clickable instead of fixed timeouts, explore per-command timeouts and default max timeout, and reference elements before clicking.
Learn how to use waitForDisplayed in WebdriverIO to wait for elements to appear, customize timeouts, and validate element visibility in tests.
Learn how to use the waitForExist command to verify an element is present in the html dom even when not yet visible, alongside wait for display and wait for clickable.
Explore waitUntil in WebdriverIO as a universal wait for conditions, such as loading text changing to 'loading complete', with configurable timeout and messages.
Learn to use WebDriverIO's built-in expect assertions to validate url, page title, and element states with retry and wait capabilities.
Compare web driver io expect assertions with jest assertions, highlighting retry and timeout behavior, and demonstrate configuring max timeout and interval for a contact us test.
Explore debugging with console.log and wdio logging, configure log levels, inspect browser and element details, and generate a json log file to aid bug tracing.
Debug WebdriverIO by using the debug command to inspect elements, adjust timeouts, and run targeted tests via the terminal, ensuring valid selectors and accurate post requests.
Learn to use the repl to spin up a browser instance for debugging webdriverio tests, issuing browser commands and stepping through actions.
Explore interacting with inputs on a contact page using webdriverio, comparing add value, set value, and clear value for the first name input, and learn css selectors for the input.
Master three dropdown interactions in WebDriverIO by selecting options by attribute value, by index, and by visible text, with assertions to verify selections.
Explore webdriverio state commands to verify inputs, checkboxes, and radios are displayed, enabled, and clickable. Craft assertions with expect and css selectors to validate element states and interactions.
Master actions by performing drag and drop, double-click, and mouse over interactions, using precise selectors and waits to drive automated tests.
Master handling multiple windows in webdrivio by opening new tabs, switching between windows, asserting titles and URLs, and closing tabs with practical examples.
Master iframe handling in webdriver context by switching into an iframe, interacting with elements inside it, and switching back to the parent to continue testing.
Master handling javascript alerts in webdriverio, learn to navigate to pages, click alert triggers, accept or cancel alerts, validate alert text, and set alerts within tests.
Upload a file in a WebdriverIO test by using the file input, selecting a dummy text file from the data folder, submitting, and validating the alert text.
Learn to inject JavaScript into a web page using the WebDriverIO execute command, manipulate the DOM to reveal hidden elements, and modify styles like background color.
OVER 5000 STUDENTS ENROLLED ON THIS COURSE TO DATE
What is WebdriverIO?
WebdriverIO is an open-source testing automation framework written in JavaScript and running on NodeJS. It is particularly useful for testing web applications. It supports both Behavior Driven Development (BDD) and Test Driven Development (TDD), making it a highly preferred choice for automation testers.
Why this course?
This course is designed to be effective, efficient and easy to follow. I have been teaching for several years on Udemy with over 6 highly successful courses to date. I have refined this course using proven teaching techniques. This course is carefully structured from start to finish and I provide downloadable code examples after each coding lecture.
What has been updated?
Everything! I have rebuilt this course from scratch using one of the latest versions of WebdriverIO. This means the material covered is relevant, making use of WebdriverIO's latest features.
What does this course cover?
All major topics are covered in detail using the below structure:
Introduction
WebdriverIO setup
WDIO TestRunner
Simple real world scenarios
Synchronous vs Asynchronous - (Understanding Asynchronous JS)
Locating Elements
Waits and Timeouts
Assertions
Debugging
Advanced Element Interactions
Reporting
Advanced Real World Example
Advanced Concepts
Jenkins CI and More!
What to expect by the end of this course?
You will be completely confident building automation frameworks using WebdriverIO and a whole host of complementing technologies. This is the only course you need to learn Automation Testing using the WebdriverIO framework.