Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing the browser while the code is running - try to hack something here #446

Closed
Sinha-Aditya opened this issue Jan 5, 2023 · 2 comments
Labels

Comments

@Sinha-Aditya
Copy link

When the code is running and the browser which has pooped up using r.init() is closed manually by the user the code gets halted and the code does not go into the except block (we have used the r.error(True) method to handle the exceptions). If there is a way out kindly suggest.

@kensoh
Copy link
Member

kensoh commented Feb 4, 2023

@Sinha-Aditya oh this is a tricky situation. The rpa process will keep waiting for Chrome to respond back. If Chromes get killed accidentally, the process will keep waiting. If you wish to handle this use case, perhaps you can modify some code around this section. Maybe you can add a timer etc to let the while loop stop after a certain timeout value.

while _tagui_started and not _ready(): pass

@kensoh kensoh changed the title Closing the browser while the code is running. Closing the browser while the code is running - try to hack something here Feb 4, 2023
@kensoh kensoh added the query label Feb 4, 2023
@kensoh
Copy link
Member

kensoh commented Feb 11, 2023

(closing issue for now, but please feel free to open or share any thoughts or questions)

@kensoh kensoh closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants