TestProject Forum

How to verify text from pop-up

We have a delete trash icon,clicking on which we get a pop-up
I want to verify text on the pop-up.How to do it?
I am using a web application

Hello @tanvi.lohakare,

If its a browser pop out,
you can use this action to get it’s text:

If it’s just a web element, you could use the regular “Get Text” action:

My Testproject freezes when pop-up appears.
How do I handle this situation?
Kindly guide me

Hi @tanvi.lohakare

You should have 3 steps.

  1. The click on the button that triggers the alert.
  2. Get alert text action and save it to a parameter.
  3. Accept alert action to close the alert.