Book Image

Enhanced Test Automation with WebdriverIO

By : Paul M. Grossman, Larry C. Goddard
Book Image

Enhanced Test Automation with WebdriverIO

By: Paul M. Grossman, Larry C. Goddard

Overview of this book

This book helps you embark on a comprehensive journey to master the art of WebdriverIO automation, from installation through to advanced framework development. You’ll start by following step-by-step instructions on installing WebdriverIO, configuring Node packages, and creating a simple test. Here you’ll gain an understanding of the mechanics while also learning to add reporting and screen captures to your test results to enhance your test case documentation. In the next set of chapters, you’ll delve into the intricacies of configuring and developing robust method wrappers, a crucial skill for supporting multiple test suites. The book goes beyond the basics, exploring testing techniques tailored for Jenkins as well as LambdaTest cloud environments. As you progress, you’ll gain a deep understanding of both TypeScript and JavaScript languages and acquire versatile coding skills. By the end of this book, you’ll have developed the expertise to construct a sophisticated test automation framework capable of executing an entire suite of tests using WebdriverIO in either TypeScript or JavaScript, as well as excel in your test automation endeavors and deliver reliable, efficient testing solutions.
Table of Contents (20 chapters)
16
Epilogue
Appendix: The Ultimate Guide to TypeScript Error Messages, Causes, and Solutions

Using Selenium Standalone server to locally build the testing grid

Cross-browser testing with Selenium Standalone server allows you to test web applications or websites across multiple browsers and operating systems using the Selenium WebDriver API. The standalone server acts as a hub that connects to different browsers and executes test scripts on them.

To perform cross-browser testing with the Selenium Standalone server, follow these steps:

  1. Download the Selenium Standalone server JAR file from the official Selenium website and run it on your machine or a dedicated server. This server acts as a central hub that manages browser sessions and receives test commands from your test scripts.
  2. Install the browsers you want to test on the machine where the Selenium Standalone server is running. Ensure that you have the necessary browser drivers installed for each browser (for example, ChromeDriver for Chrome, GeckoDriver for Edge) and that they have been added to your system...