1 Answers
What are the 5 methods in Selenium?
In Selenium, there are several important methods that are commonly used for test automation. The five main methods in Selenium are:
- findElement: This method is used to find a single element on a web page based on the specified locator.
- findElements: This method is used to find multiple elements on a web page based on the specified locator.
- sendKeys: This method is used to enter text into an input field or interact with form elements.
- click: This method is used to simulate a mouse click on an element, such as a button or a link.
- getAttribute: This method is used to retrieve the value of a specified attribute of an element.
These methods are essential for interacting with web elements and performing various actions on a web page during test automation with Selenium.
Please login or Register to submit your answer