- True or false: Selenium is a browser automation library.
True.
- What are the different types of locator mechanisms provided by Selenium?
The different types of locator mechanisms are ID, Name, ClassName, TagName, Link, LinkText, CSS Selector, and XPATH.
- True or false: With the getAttribute() method, we can read CSS attributes as well?
False. The getCssValue() method is used to read CSS attributes.
- What actions can be performed on a WebElement?
The actions performed are click, type (sendKeys), and submit.
- How can we determine whether the checkbox is checked or unchecked?
By using the isSelected() method.