Running Your First WebDriver Recipe
Understand how to execute your first Selenium WebDriver test using Node.js and the Mocha framework. Learn the role of browser drivers like chromedriver, how to run tests manually and automatically, and familiarize yourself with the key directory structure for organizing your test files.
We'll cover the following...
We'll cover the following...
First Selenium recipe
Having learned all the basics, let’s move to the practical working of Selenium. Take a look at the following piece of code:
Selenium script for user authentication
Here, lines 1 to 3 imports Selenium for executing the 'User Authentication' test, and lines 5 to 7 tells Selenium to acquire the chromedriver. This is an example of a helping driver, which is necessary for enabling Selenium to work with the ...