robotframework-pageobjectlibrary icon indicating copy to clipboard operation
robotframework-pageobjectlibrary copied to clipboard

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

Open angeleyesffx opened this issue 6 years ago • 3 comments

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)

angeleyesffx avatar Aug 07 '19 21:08 angeleyesffx

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

nashu2k avatar Nov 14 '19 13:11 nashu2k

I use the same timeout in both.

angeleyesffx avatar Nov 14 '19 14:11 angeleyesffx

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

nashu2k avatar Nov 14 '19 14:11 nashu2k