No Such Element Exception/No Such Window Exception/No Such Frame Exception/No Alert Present Exceptio

Опубликовано: 10 Июль 2023
на канале: Programming with Pallavi
251
5

An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions.

Different Types of Exceptions are:
No Such Element Exception:
Thrown when no such element present in DOM(Locator is wrong,synchronization problem,frame error)
No Such Window Exception:
Thrown when no such window is present
No such frame exception:
Thrown when no such frame is present
Timeout Exception:
Thrown when a command does not complete in enough time.
Stale element reference exception:
Indicates that a reference to an element is now "stale" --- the element no longer appears on the DOM of the page.
Element not interactable exception:
Indicates that a click could not be properly executed because the target element was obscured in some way.