In this video, Meaghan Lewis walks you through how to navigate the WebDriver API with the help of a sample WebDriver test. Learn about the typical structure of a WebDriver test.
- [Instructor] This video is all about learning…how to use the API in order to successfully…write test with WebDriver.…We will be using the Ruby API documentation…for WebDriver to familiarize ourselves…with all the classes and methods available…to perform actions on the browser.…Throughout this video, I will refer back…to this API documentation.…First, I'm going to show an example of a sample test…written with WebDriver and break down each step.…This test is in the exercise files for this video, 01_03.…
First, take a minute to glance through…the steps of this test, and try to get…an idea of what it's doing.…In this test, I see that the driver…opens a new Firefox browser, navigates to google.com,…types in the search box, and clicks on the search button.…So now I'll talk about each one of these steps…and break them down into three different categories.…First up, we have the driver.…In lines 3 and 4, we use the driver.…First, we set up a new instance of the Firefox driver.…
This is usually always one of the first steps of the test.…
Find out how to set up the test-writing framework, WebDriver, and Selenium Grid, which allows you to distribute the testing load and run tests against a remote server. Learn best practices to write effective tests using variables and functions, and to organize tests into suites that can scale over time. Instructor Meaghan Lewis—a QA engineer at GitHub—also explains the test pyramid paradigm, which details an ideal way to balance unit, integration, and UI testing.
- Setting up Selenium WebDriver
- Using the Selenium grid to distribute the testing load
- Setting up a hub and nodes
- Writing clean test code
- Organizing a test suite