in Jenkins by (6.5k points)
What are the different exceptions in Selenium WebDriver?

1 Answer

0 votes
by (20.8k points)

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
0 votes
asked Jan 30, 2020 in Selenium by rajeshsharma (23.9k points)
0 votes
asked Oct 14, 2020 in Jenkins by rahuljain1 (6.5k points)
0 votes
asked Aug 22, 2019 in Selenium by john ganales (14.2k points)
...