Selenium-2: Webdriver API


Web automation comprises of four basic concepts these are Navigation, Interrogation, Manipulation and Synchronization. Formerly, Selenium API was not categorized for Webdriver’s predecessor Selenium RC but for Webdriver, Selenium API is categorized based on those categories. In this post, I will explain the webdriver’s API and its categories.


This tutorial is designed for beginners who have little or no automation experience. At the end of this tutorial, you will have a knowledge on Selenium Webdriver API.


Nice to have: Before starting to read this post it is better to read “

[Selenium-1] Quick Start to Selenium WebDriver with JAVA & JUnit & Maven & IntelliJ” post.

Selenium Webdriver at a Glance

Reference link:

In above link you see Selenium Webdriver API and its commands at a glance. This is a perfect mind map for testers who are using Webdriver for web automation projects. In below picture you see that selenium webdriver commands divided into five main categories.



Navigation means open a browser, move to a page from another one, back, forward, etc.



Interrogation means get information about website and its elements. For example, read the page title, read url, get text, get options, find element’s location, get element’s size, etc.



Manipulation means that clicking on links and buttons, filling forms, cleaning texts, pressing keys, drag & dropping etc.



While we are writing our test automation codes synchronization is one of the most important part of our automation task. We have to manage the automation speed, wait the web application events etc. It is so important to use timeouts. In this way, we provide much more solid and reliable web test automation.



Domain part is about changing frames & windows, managing alerts and cookies, selecting drivers for browsers.


Note: Detailed mind-map is shown at

Many thanks to Alan Richardson for this beautiful mind-map.


Database Operations in JavaFX

By Onur Baskirt / Apr 1, 2016 / 56 Comments
Before started this section, please check the first article and learn How to Start JAVAFX! At first, part of JavaFX tutorial series, we created a sample JavaFX project, designed the draft version of the UI and set up an...
rest assured

REST API Testing with Rest Assured

By Onur Baskirt / Mar 8, 2016 / 32 Comments
Outline In this post, I will explain what is API and API testing, what is the difference between SOAP and REST services, and how to test REST APIs with Rest Assured Library. What is API? API stands for Application Programming...

How to Write Effective CSS Locators

By Onur Baskirt / Oct 1, 2017 / 0 Comments
Hi all, in this tutorial, I will describe you how to write effective CSS locators to interrogate web elements for your automation projects. As a rule of thumb, your interrogation strategy should be in below order: First try to use...

Selenium-11: Execute JavaScript with JavascriptExecutor

By Onur Baskirt / Jan 27, 2016 / 15 Comments
Outline Sometimes we cannot handle some conditions or problems with Webdriver, web controls don't react well against selenium commands. In this kind of situations, we use Javascript. It is useful for custom synchronizations, hide or show the web elements, change...

Getting Started with JavaFX

By Onur Baskirt / Mar 25, 2016 / 0 Comments
When I started to work in my current position, one of my task is to do manual operations for campaign products  every week. After the second week, I thought that I have to automate this task using a GUI based...

How to Write Smart XPath Locators

By Onur Baskirt / Sep 24, 2017 / 4 Comments
Hi all, in this tutorial, I will describe you how to write smart and non-brittle XPath locators. When we write our test scripts, we generally prefer to use id, name, class, etc. these kinds of locators. However, sometimes we could not...

Selenium-1: Quick Start to Automation with Selenium WebDriver & JAVA & JUnit & Maven & IntelliJ

By Onur Baskirt / Sep 8, 2015 / 26 Comments
Outline Selenium Webdriver is the most popular open source web test automation framework across wide range of browsers and platforms. In this tutorial you will learn how to do web test automation with Selenium Webdriver and the related tools. Audience...
page object model

Page Object Model with C#

By Ege Aksoz / Jun 18, 2017 / 8 Comments
In the previous tutorial, we’ve taken the initial steps and entered the world of automated testing. We also wrote our first automated test. From this point on, since we are not just going to write one test, we need to...

How to Select a Date From DatePicker Using Selenium

By Onur Baskirt / Aug 13, 2016 / 6 Comments
When you need to automate a airway, hotel, or similar websites you need to deal with Datepickers and some times it is a little bit cumbersome to select a specific date on the Datepicker or calendar.  In this post, I...

Selenium Webdriver Performance testing with Jmeter and Selenium Grid

By Ozgur Kaya / Aug 9, 2016 / 2 Comments
In this post, we will complete Selenium Webdriver Performance testing scenario using Jmeter and Selenium Grid. 1- Install Java 7 or later If necessary 2- Download latest Jmeter version 3.0 or higher. 3- Download Jmeter PluginsManager JAR file and...
By | 2017-01-13T21:33:47+00:00 December 8th, 2015|Selenium, Test Automation, Web Automation|4 Comments

About the Author:

Onur Baskirt
Onur Baskirt is a senior IT professional with 10+ years of experience. He worked at Bahçesehir University, ST Microelectronics, Huawei and Ericsson as research assistant, design verification engineer and software test leader. Also, he worked as software test leader and software operations manager at Turkey's biggest technology retailer, Teknosa. Now, he is working as Head of Software Testing and Manager of two Development Teams at His current research areas are technical software testing, programming, and computer science. Formerly, he has several research works and papers on digital chip design & verification. His hobbies are sport, dancing, traveling, and nutrition. You can find detailed information about him on his linked-in page.


  1. shrishail December 28, 2015 at 6:49 pm - Reply

    nice explanation

  2. sadagopan March 17, 2016 at 5:49 am - Reply

    good one

  3. Hiren July 18, 2017 at 12:18 pm - Reply

    Onur Great mapping 🙂 and context is perfectly understood

Leave A Comment