Operational acceptance tests check the business logic to know whether the project works the way it is supposed to. In this recipe, you will learn how to write acceptance tests with Selenium, which allows you to simulate activities at the frontend such as filling in forms or clicking on specific DOM elements in a browser.
Testing the user interface with Selenium
Getting ready
Let's start with the locations and likes apps from the Implementing the Like widget recipe in Chapter 4, Templates and JavaScript.
For this recipe, we'll be using the Selenium library with the Chrome browser and ChromeDriver to control it. Let's prepare that:
- Download and install the Chrome browser from https://www.google.com/chrome/.
- Create...