0 votes
in Jenkins by
What are the different exceptions in Selenium WebDriver?

1 Answer

0 votes
by

What are the different exceptions in Selenium WebDriver?

Exceptions are events that occur during the execution of a program and disrupt the normal flow of a program's instructions. Selenium has the following exceptions:

TimeoutException - It is thrown when a command performing an operation does not complete in the stipulated time.

NoSuchElementException - It is thrown when an element with specific attributes is not found on the web page.

ElementNotVisibleException - It is thrown when an element is present in Document Object Model (DOM) but is not visible. Ex: Hidden Elements defined in HTML using type=“hidden”.

SessionNotFoundException - The WebDriver is performing the action immediately after quitting the browser.

Related questions

0 votes
asked Jan 30, 2020 in Selenium by rajeshsharma
0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
...