Selenium Basic Classes
Selenium WebDriver provides several classes and
interfaces that are useful for automating web application testing.
Here are some of the key classes and interfaces:
Key Interfaces in Selenium
- WebDriver Interface: The main interface for testing web applications. It provides methods for interacting with web pages, such as opening a URL, navigating, and managing browser windows.
- By Class: Provides various methods for locating elements on a web page, such as by ID, name, class name, tag name, link text, partial link text, CSS selector, and XPath.
- WebElement Interface: Represents an HTML element on a web page. It provides methods for interacting with elements, such as clicking, sending keys, and retrieving text.
- Actions class: Provides method related to keyboard and mouse events like keyDown, keyUp, click, doubleClick, contextClick, dragAndDrop, moveToElement, etc.
Next we will learn WebDriver Interface and its methods.