xxxxceptions Flashcards

1
Q

ElementNotSelectableException

A

ElementNotSelectableException: An element is disabled (can not be clicked/selected) in spite of being present in the DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

StaleElementReferenceException

A

The referenced element is no longer present on the DOM page (a reference to a component is now Stale). For example, the item belongs to a different frame than the current one or the user has navigated away to another page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ElementNotVisibleException

A

In spite of the element being present in the DOM, it is not visible (can not be interactive). For example, elements defined in HTML with type =”hidden”. It is a subclass of the ElementNotInteractableException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

NoSuchElementException

A

This Exception occurs, when the locators (i.e. id / xpath / css selectors etc) we mentioned in the Selenium Program code is unable to find the web element on the web page. There are two possibilities for getting this Exception, i.e. either we have provided a incorrect locator and trying to find the web element or we have provided correct locator, but the web element related to the locator is not available on the web page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

NoAlertPresentException:

A

Webdriver is trying to switch to an invalid alert, which is unavailable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

NoSuchWindowException

A

Webdriver is trying to switch to an invalid window, which is unavailable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

NoSuchFrameException

A

Webdriver attempts to switch to an invalid frame, which is unavailable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ElementNotInteractableException

A

An element is not in a state, where it can be interacted with (can not be clicked or able to send keys) in spite of it being present in the DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SessionNotFoundException

A

occurs when driver is trying to perform operations on the Web Application after the Browser is closed or when the Browser Session is not available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

TimeoutException

A

This exception happens when a command takes longer to complete than the wait time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

WebDriverException

A

Webdriver is acting immediately after ‘closing’ the browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly