Checking if a web element exists or not


I need to check whether an HTML element exists in a web page. How can i achieve that?.

The actual use case is that the user will submit the data and after submission a message will be displayed i.e “Success or failure” message. I need to check for the successful message and proceed accordingly.

Please let me know ASAP.

Thanks in Advance.


@venkat_ayyaptr You can use Wait for image action in this case and if-else condition with different actions depending on whether the image was found.

@ashapkina Thanks for your reply. Will try it…

1 Like

I have a similar issue, can you give me an example?