Selenium API is a critical part of the Selenium Webdriver Test Automation. Selenium test automation comprises four basic concepts these are Selenium Navigation, Selenium Find Elements, Selenium Actions, and Selenium Wait. 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 Selenium API and its categories.
Selenium API Tutorial Audience
This tutorial is designed for beginners who have little or no automation experience. At the end of this Selenium Webdriver API tutorial, you will have a knowledge of Selenium Webdriver API.
Nice to have: Before starting to read this post it is better to read previous selenium tutorials.
Selenium API at a Glance
In the 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 the below picture, you see that selenium webdriver commands divided into five main categories.
Selenium Navigate to URL
Selenium Navigation means to open a browser, move to a page from another one, back, forward, etc.
Selenium Find Element
Selenium Find Element or in other terms Interrogation means get information about the website and its elements. For example, read the page title, read URL, get a text, get options, find element’s location, get the element’s size, etc.
Selenium Actions or in other terms, Manipulation means that clicking on links and buttons, filling forms, cleaning texts, pressing keys, drag & dropping etc.
Selenium Webdriver Wait is important for synchronization of our test automation projects. While we are writing our test automation codes synchronization is one of the most important parts of our automation task. We have to manage the automation speed, wait for the web application events etc. It is so important to use timeouts. In this way, we provide a much more solid and reliable web test automation.
Selenium Frames | Selenium Windows | Selenium Alerts
Domain part is about changing frames & windows, managing alerts, and cookies, selecting drivers for browsers.
Note: Detailed mind-map is shown at https://www.mindmeister.com/280141421/selenium-2-webdriver-commands
Many thanks to Alan Richardson for this beautiful mind-map.