Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (41.4k points)

What is the WebDriver method in Selenium?

1 Answer

0 votes
by (47.6k points)

I am mentioning some of the important WebDriver methods which is used in Selenium:-

1. get(): The get() method is used to load a new web page in the current browser window.

2. getCurrentUrl(): The getCurrentUrl() method will return the current web page URL.

3. getTitle(): This will return the current web page title.

4. findElement(): This method will return the first element matching the specified locator.

5. findElements(): It will return the list of elements matching the specified locator.

6. close(): This method will close the current window. If there is more than one associated window opened, it will close the current window.

7. quit(): This method will close all the associated window.

Here is the Selenium Tutorial which you should read to know more things about Selenium. Also, you should consider the below-mentioned video by which I came to know all these things.

.

Browse Categories

...