示例#1
0
def step_impl(context, url):
    url = world.replace_variables(url)
    page = Page()
    page.url = url
    page.driver = world.driver
    page.go()
    page.wait_for_loading()
示例#2
0
def step_impl(context, url):
    url = world.replace_variables(url)
    page = Page(url=url)
    page.driver = world.driver
    page.wait_for_loading()

    if url in world.driver.current_url:
        return True
    else:
        log.failed("Verify url contains?", world.driver.current_url, url)