Set condition : If text found on browser screen then continue, else close browser

Hi everybody, It would be really helpful if you could help me know how to set a specific condition in my workflow.
I want to check if a specific word exists on screen, then the workflow continues. Else, the screen is closed.

Hello @Youssef, you can use screen scraping to get the texts from the screen.

once you have the text then you can use string.contains method to check if the required string is there or not, make sure you put kill process activity in the else section.

Hello @RishiVC1
Thank you for your advice. As I am a new user of UIPATH, could you please share with me a screenshot of such workflow? It would be really helpful.
Thanks

Hello @Youssef,
Could you please share with me too this screenshot? I’m a new user and this would be really helpfull.
Thank you!

Hello @RishiVC1
Could you please share with me too this screenshot? I’m a new user and this would be really helpfull.
Thank you!