Attach window issue

Hi,

I am trying to logout and close a web application towards the end state in REFramework close applications.

For this I am doing 1. attach window (Browser window)
2. if element exists — do logout

Because the actual process is another window, the web application times out sometimes. So the attach window is throwing an exception. Sometimes it works fine if app is not timed out.

How can I fix this System Exception towards the end of the process?

Thanks a lot.

Try to handel inside Retry mechanism

and increase timeout

Would it be possible to logout as soon as you’re done with the application? I understand from your description, that you don’t need it for the whole process duration.

1 Like

Hello @A_Learner - Welcome to the UiPath Community Forum.

Try to check

  1. Whether the application is already timed-out by attaching to the time-out window selector (User Attach window).
  2. If the element is false, then try to check if log-out button exists
  3. If button exists, then attach window and logout.

Give a specific time-out from the config file and adjust as per requirement. Wrap the complete code in Try Catch to handle and throw exception in case of both of the elements return false value.
Main.xaml (20.1 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.