Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


DuraTechDev
2021-05-26T11:50:21Z
I am trying to short circuit a web macro if the user is already logged in. I moved my logging in script out of my other macro because the Login portion of the website was failing frequently... I'm trying to make the job a little more resilient by only logging in one time for the job and using a separate macro (with cookies forwarded to the task) to handle all of the work on the site. It works well except when the account is already logged in from the first time running the job... Looking at the toolbox, there is a try catch and a if control. Is there a way to use those while recording? Also, I tried adding a Check element step to the existing macro and that changed itself into a click element when I did the test run. My thought was to check if an element exists, if it does, proceed with logging in. If it doesn't, the macro is done because i'm already logged in. Any ideas on how to get that to work?
Sponsor
Forum information
Support
2021-06-15T14:31:39Z
Originally Posted by: DuraTechDev 

I am trying to short circuit a web macro if the user is already logged in. I moved my logging in script out of my other macro because the Login portion of the website was failing frequently... I'm trying to make the job a little more resilient by only logging in one time for the job and using a separate macro (with cookies forwarded to the task) to handle all of the work on the site. It works well except when the account is already logged in from the first time running the job... Looking at the toolbox, there is a try catch and a if control. Is there a way to use those while recording? Also, I tried adding a Check element step to the existing macro and that changed itself into a click element when I did the test run. My thought was to check if an element exists, if it does, proceed with logging in. If it doesn't, the macro is done because i'm already logged in. Any ideas on how to get that to work?



Hi,

Please send us an email to support@visualcron.com and include details/screenshots of how you set it up so far and explain what's not working/link to this thread
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top