From the course: Advanced Selenium: Automation Frameworks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Introducing wdio

Introducing wdio

- [Instructor] Now that we have Mocha installed, let's go ahead and get webdriver.io installed and configured. In the terminal, install WDIO with NPM. Let's go ahead and run the configuration tool now. The Node module's directory contains all of the dependencies we've installed with the Save option. We'll choose Local for the first question and for the second as well. Select Mocha for the framework and we'll select the Sync option next. We could choose to run our tests asynchronously, it just requires the use of promises. When we're first getting started, the synchronous execution option is a little bit simpler. Select the default option for our test location. For the reporter, let's go ahead and select Speck. This is a descriptive reporter that prints out the names of each test and test case as they run. For test service, go ahead and select Chrome Driver. With this option, webdriver.io will start the Chrome Driver…

Contents