MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / WaitForPageLoad

Class WaitForPageLoad

src/Test/TestWeb.py:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class WaitForPageLoad(object):
14 def __init__(self, browser):
15 self.browser = browser
16
17 def __enter__(self):
18 self.old_page = self.browser.find_element_by_tag_name('html')
19
20 def __exit__(self, *args):
21 WebDriverWait(self.browser, 10).until(staleness_of(self.old_page))
22
23
24def getContextUrl(browser):

Callers 1

testLinkSecurityMethod · 0.85

Calls

no outgoing calls

Tested by 1

testLinkSecurityMethod · 0.68