本文整理汇总了Python中pages.treeherder.TreeherderPage.wait_for_page_to_load方法的典型用法代码示例。如果您正苦于以下问题:Python TreeherderPage.wait_for_page_to_load方法的具体用法?Python TreeherderPage.wait_for_page_to_load怎么用?Python TreeherderPage.wait_for_page_to_load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.treeherder.TreeherderPage
的用法示例。
在下文中一共展示了TreeherderPage.wait_for_page_to_load方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_set_as_top_of_range
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import wait_for_page_to_load [as 别名]
def test_set_as_top_of_range(base_url, selenium):
page = TreeherderPage(selenium, base_url).open()
current_top_of_range = page.result_sets[0].datestamp
page.result_sets[1].set_as_top_of_range()
page.wait_for_page_to_load()
new_top_of_range = page.result_sets[0].datestamp
assert not new_top_of_range == current_top_of_range
示例2: test_load_next_results
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import wait_for_page_to_load [as 别名]
def test_load_next_results(base_url, selenium):
page = TreeherderPage(selenium, base_url).open()
assert len(page.result_sets) == 10
page.get_next_ten_results()
assert len(page.result_sets) == 20
page.get_next_twenty_results()
page.wait_for_page_to_load()
assert len(page.result_sets) == 40
page.get_next_fifty_results()
assert len(page.result_sets) == 90
示例3: test_load_next_results
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import wait_for_page_to_load [as 别名]
def test_load_next_results(base_url, selenium):
page = TreeherderPage(selenium, base_url).open()
assert len(page.pushes) == 10
page.get_next_10()
assert len(page.pushes) == 20
page.get_next_20()
page.wait_for_page_to_load()
assert len(page.pushes) == 40
page.get_next_50()
assert len(page.pushes) == 90