def test_find_button(self): from lettuce_webdriver.util import find_button assert find_button(world.browser, 'submit') assert find_button(world.browser, 'Submit!') assert find_button(world.browser, 'submit_tentative') assert find_button(world.browser, 'Submit as tentative') assert find_button(world.browser, u'ส่งฟอร์ม')
def press_button(step, value): with AssertContextManager(step): button = find_button(world.browser, value) button.click()
def test_find_button(self): from lettuce_webdriver.util import find_button assert find_button(world.browser, 'submit') assert find_button(world.browser, 'Submit!') assert find_button(world.browser, 'submit_tentative') assert find_button(world.browser, 'Submit as tentative')
def press_button(step, value): button = find_button(world.browser, value) button.click()
def i_can_press(step, name): return find_button(world.browser, name)