Selenium Exceptions are divided into how many categories?

0 votes
May 22 in Selenium by Ketan
52 views

1 answer to this question.

0 votes

Hey @Ketan, Selenium exceptions are divided into two types:

  1. Checked Exceptions: Checked Exceptions are handled during the process of writing codes. These exceptions are handled before compiling the code, therefore, such exceptions are examined at the compile time. If some code within a method throws a checked exception, then the method must either handle the exception or it must specify the exception using throws keyword.
  2. Unchecked Exceptions: These exceptions are thrown at runtime. Unchecked exceptions are more catastrophic than the compile-time exception as it causes problems while running Automation pack in headless. In Java, Unchecked Exception is direct sub Class of RuntimeException. What is major benefit of Unchecked Exception is that it doesn’t reduce code readability and keeps the client code clean.
answered May 22 by Divya

Related Questions In Selenium

0 votes
2 answers

How different/ similar are Protractor and Selenium? Which is better?

Protractor and Selenium both are used to ...READ MORE

answered Jun 9 in Selenium by Amod Mahajan
1,620 views
0 votes
1 answer
0 votes
1 answer

How to enter text into text field using Selenium WebDriver

You can use the same code as ...READ MORE

answered Jul 6, 2018 in Selenium by Meci Matt
• 9,440 points
2,463 views
0 votes
1 answer

What are the major exceptions that occur in Selenium?

There are mostly 5 different types of ...READ MORE

answered Feb 13 in Selenium by Priyaj
• 57,300 points
41 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,430 points
1,190 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,510 points
1,274 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,510 points
1,032 views
0 votes
1 answer

How many types of Navigation commands are there in Selenium Webdriver?

Hi Rajan, following are the Navigation commands ...READ MORE

answered May 7 in Selenium by Abha
• 27,200 points
84 views
0 votes
1 answer