You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below works fine, it catches the exception and returns boolean. element(LOCATOR).isPresent().
Next example will fail with NoSuchElementException in case child element is absent in DOM. element(PARENT_ELEMENT_LOCATOR).then(CHILD_ELEMENT_LOCATOR).isPresent().
Despite the fact that NotFoundException is catched in isPresent().
Could you please throw some light on it?
The text was updated successfully, but these errors were encountered:
vzakharchuk
changed the title
isPresent() throws NoSuchElementException
NoSuchElementException is not catched when isPresent() is called
Oct 17, 2018
Hey there,
The code below works fine, it catches the exception and returns boolean.
element(LOCATOR).isPresent()
.Next example will fail with NoSuchElementException in case child element is absent in DOM.
element(PARENT_ELEMENT_LOCATOR).then(CHILD_ELEMENT_LOCATOR).isPresent()
.Despite the fact that NotFoundException is catched in
isPresent()
.Could you please throw some light on it?
The text was updated successfully, but these errors were encountered: