-
Notifications
You must be signed in to change notification settings - Fork 12
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
Sleep statements needed in code to avoid errors #59
Comments
Oh - I encounter these problems with nodes getting If you have a reliable way of producing the problem, I would very much like that, as currently the problem occurs for me in maybe 1 of 20 test runs or so. |
It happens for me nearly 100% of the time in the code sample above. If I remove the If it'll help, I can send you a user name, password and url for the site (it's just a staging site). How can I get those credentials to you securely? |
Unfortunately, the experiment with sleeping did not help with the issue. I can replicate the issue, but have not found ways to fix the issue. |
Is this specific to Perl ? I mean there is implementation of Chrome automation in other language. Maybe a track to follow ? |
I think I found the same error elsewhere [1], and the solution seems to be to call |
Excellent news ! |
@Corion have a look at Selenium::Chrome, it is working well for me. |
I've got chromium installed on a Debian 10 box with 8 GB of ram. I will frequently, but not always, see errors unless I place sleep statements in the code like so:
Here's an example of the errors I'll get without the sleep statements:
When this error occurs, the HTML does not get printed to the screen at all as execpted.
A less frequent error I see is this one:
Other times, the script will run but will print this error before printing the content of the page:
Are there any settings I can use to avoid these errors? I'd prefer not to have to litter my code with sleep statements.
The text was updated successfully, but these errors were encountered: