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

Execution "subprocess.run" indefinitely #97

Open
YuryRF opened this issue Jan 26, 2023 · 0 comments
Open

Execution "subprocess.run" indefinitely #97

YuryRF opened this issue Jan 26, 2023 · 0 comments

Comments

@YuryRF
Copy link

YuryRF commented Jan 26, 2023

Using the Chrome browser.
If the page uses javascript, then you need to wait until the script makes changes to the final html. We use the "--virtual-time-budget" flag.
But it is with this flag that chrome hangs 1 out of 10 cases.
subprocess.run(command) in chrome.py runs indefinitely.
I used crutch like this:
subprocess.run(command, check=True, timeout=5) and handled the error on exit from the "screenshot" function like this:

try:
    pass
except subprocess.TimeoutExpired:
    pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant