I have a login workflow which I want to invoke for all other workflows but how would I use the same link in all other workflows, which was already opened in invoked workflow.
when I am adding any activity like click and type inti it asked me that it should be inside use application activity.
what should I use as URL or indicate target for use application activity, as URL of our website doesn’t change throughout the flow and if I’ll use same URL again, it’ll direct me to login page again
After login the URL might be change. If not changing follow the below process.
In invoked workflows also If you want to use Ui activities you have to encapsulate with Use application\browser activity.
Change the properties of Use application\browser activity for other invoked workflows as below:
Open → If not Open
Close → Never
Window attach mode → Single Instance.
For Main Workflow the properties of Use application\browser activity like below.
Open → Always
Close → Never
Window Attach mode → Application Instance
Check the below image for properties in the Use application\browser activity
Implement error handling to deal with situations where the session might expire or the URL changes unexpectedly. You might need to catch errors and, if necessary, re-open the browser and perform the login process again
example:
*Attach Browser (Use the passed browser variable)
*Type Into (Username and password)
*Click (Login button)