From the course: Learning Selenium

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using the API

Using the API - Selenium Tutorial

From the course: Learning Selenium

Start my 1-month free trial

Using the API

- [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 file for this video at 01_03 under the start directory. First, take a moment 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…

Contents