I am new to QTP and I have a problem with “error validation message”.
I have a task that checks whether the error validation message appears when invalid input is entered. I tried to check before and after the data is entered, but unfortunately the QTP recognies the “error message” and see is even that the error is not displayed on the page.
can I handle this issue ?
The error message may exist even if you can’t see it, especially in web applications an element is often there but invisible until it’s needed.
You can check if the error message object is visible, there are three common ways in which an object can be invisible
visible=false)Find out how to distinguish a visible error message from an invisible one and write your test accordingly.