Book Image

Selenium Essentials

By : Prashanth Sams
Book Image

Selenium Essentials

By: Prashanth Sams

Overview of this book

Table of Contents (12 chapters)

Chapter 3. Selenium WebDriver Functions

Selenium WebDriver API provides an object-oriented approach to test web-based applications. On the one hand, Selenium RC (Remote Control) injects JavaScript into the browser on runtime, and on the other hand, Selenium WebDriver performs direct calls to the browser using each browser's native approach. Meanwhile, WebDriverBackedSelenium lets you combine both Selenium RC and WebDriver. Hopefully, Selenium RC will be deprecated and taken away in Selenium 3.0, which includes the Marionette driver replacing the Firefox driver to automate Firefox OS in mobile platforms. WebDriver API enriched Selenium RC is called Selenium WebDriver or Selenium 2.0. In the future, Selenium will meet all the W3C standards; however, the current Selenium WebDriver API encloses a bunch of functions used for effective web automation tests.

In this chapter, we will learn about the following topics:

  • Basic Selenium WebDriver functions

  • Locating WebElements

  • WebElement and Windows WebDriver...