How to verify that an element is not present on a page (Selenium Interview Question #321)

preview_player
Показать описание
In this session, I have answered one of the Selenium Interview Questions i.e.
How to verify that an element is not present on a page

Рекомендации по теме
Комментарии
Автор

Thanks you so much.. you have explained very clearly

BhavyasCreations
Автор

How to make test fail if element is found in the page?

bhhaskarpippera
Автор

I am getting error -NoSuchElementException -Unable to locate Element but no message "Element not found". Done same as you said

Test-is
Автор

Instead of button, how will validate that particular field is not available on screen ?

krantikhopade