예제 #1
0
 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'ส่งฟอร์ม')
예제 #2
0
def press_button(step, value):
    with AssertContextManager(step):
        button = find_button(world.browser, value)
        button.click()
예제 #3
0
 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')
예제 #4
0
def press_button(step, value):
    button = find_button(world.browser, value)
    button.click()
예제 #5
0
def press_button(step, value):
    with AssertContextManager(step):
        button = find_button(world.browser, value)
        button.click()
예제 #6
0
def press_button(step, value):
    button = find_button(world.browser, value)
    button.click()
예제 #7
0
파일: terrain.py 프로젝트: cburgmer/deniz
def i_can_press(step, name):
    return find_button(world.browser, name)