I am constantly getting error as No open windows found for ‘chrome.exe’. Please check if the application is running after 300 Transaction Item due to which my selectors are failing. Till 200-300 this error is not there , once the bot runs for longer duration, its throwing error as “No open windows found for ‘chrome.exe’. Please check if the application is running.”
May be the application is not responding or going into stale after long time…one workaround you can try is to logout and login after 200 transactions or so so that the application would be active again
Further to @Anil_G’s suggestion. How about every 50 transactions?
In ‘Get Transaction Data’ state but before ‘GetTransactionStatus’ (this is still at highest level in the framework) insert the following:
Step 1:
Insert IF activity
Step 2:
Insert the Condition
TransactionNumber.ToString.Contains(“50”)
Then:
Insert: ‘CloseAllApplications.xaml’
then Insert ‘InitAllApplications.xaml’
Else:
Do nothing.
Step 3:
Click Import argument and remap the arguments.
Note:
If you want every 100 insert the condition:
TransactionNumber.ToString.Contains(“00”)
You should make this value a Config Asset so you can adjust accordingly.
I have dome similar step. Just kept one Check App state . If element is visible do the Get Attribute otherwise in the Else part added login to application and Get Attribute It worked