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

Webdriver didn't get website with document.readyState == 'complete' #20

Open
angeleyesffx opened this issue Aug 7, 2019 · 3 comments
Open

Comments

@angeleyesffx
Copy link

For some reason some website with document.readyState == 'complete' just get in this condition, and selenium is getting lost.
I tested the same pages with ruby and everything works pretty fine.

@contextmanager
def _wait_for_page_refresh(self, timeout=10):
yield
WebDriverWait(self.browser, timeout).until(
staleness_of(old_page),
message="Old page did not go stale within %ss" % timeout
)
self.selib.wait_for_condition("return (document.readyState == 'complete')", timeout=10)

@nashu2k
Copy link

nashu2k commented Nov 14, 2019

did you try to use bigger value for the timeout (or at least mention if in ruby you're having the same timeout values) ?

@angeleyesffx
Copy link
Author

I use the same timeout in both.

@nashu2k
Copy link

nashu2k commented Nov 14, 2019

Is it a public webpage that I can test? Also, can you share the selenium & robot libs versions (via pip freeze) ? Thank you.

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

2 participants