high-level-tabs.py 423 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
from lettuce import world, step


@step(u'I click on the tabs then the page title should contain the following titles:')
def i_click_on_the_tab_and_check(step):
    for tab_title in step.hashes:
        tab_text = tab_title['TabName']
        title = tab_title['PageTitle']
        world.click_link(tab_text)
10
        world.wait_for(lambda _driver: title in world.browser.title)
11
        assert(title in world.browser.title)