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!
HI @Youssef,
If you are using Get text to extract the text, than you will be saving the output to a variable right, then just take an if condition activity and put that outputvariable.contains(“Your Search Keyword”)
or directly you can use CheckAppState activity and indicate the specific keyword on the screen, in the element appear block insert the activities to move forward if that word exists on the screen, in the element not appear block insert the code to close the screen.
Hope this information helps…