I am trying to check whiter the text “Service Notice” is present in the web page or not if the UI element is present it should continue or else if not present it should stop the flow
use element exist activity
hope that solves
so once u hv element exist you can have if and else where …you can use thow activity to stop process
Hi @manishmukherjee ,
You could try using a Throw Activity and it will stop the execution there or leave it empty.
Multiple ways to achieve the same thing, depending on the quality of your selectors.
Element exists, text exists - both of these would work, and then you put the boolean output into an if statement and throw the process if it’s false
Within a try catch: click text, click, find text - if these fail, the exception will be caught in the try catch and then you can assign the exception message to something more helpful if needed. You’ll still need the throw the whole process though, especially if there is further automation after checking if that element exists.
Use “Check App state” Activity and select the element exist in drop-down.
Basically you can use Try catch activity
In Studio X → check the Show Developer option
You can find this activity
In the Catch Just use Throw activity and the process will stop.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.