Skip to content
Advertisement

selenium webdriver detect UI pop up error messages

I have this react application being tested using selenium webdriver.

if my login is wrong, how do i detect the text using selenium webdriver? I am unable to find the code/ figure out how to trap the pop up message . ‘authentication failed’

JavaScript

enter image description here

Advertisement

Answer

You can use below code to verify if authentication failed pop up is displayed or not:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement