def test_find_by_name(self):
     from lettuce_webdriver.util import find_field_by_name
     assert find_field_by_name(world.browser, 'submit', 'submit')
     assert find_field_by_name(world.browser, 'select', 'car_choice')
     assert find_field_by_name(world.browser, 'textarea', 'bio')
示例#2
0
文件: terrain.py 项目: cburgmer/deniz
def _set_endpoint(value):
    # Find endpoint field
    text_field = find_field_by_name(world.browser, 'text', "endpoint")
    text_field.clear()

    text_field.send_keys(value + Keys.RETURN)
示例#3
0
 def test_find_by_name(self):
     from lettuce_webdriver.util import find_field_by_name
     assert find_field_by_name(world.browser, 'submit', 'submit')
     assert find_field_by_name(world.browser, 'select', 'car_choice')
     assert find_field_by_name(world.browser, 'textarea', 'bio')
示例#4
0
    def test_find_by_name(self):
        from lettuce_webdriver.util import find_field_by_name

        assert find_field_by_name(world.browser, "submit", "submit")
        assert find_field_by_name(world.browser, "select", "car_choice")
        assert find_field_by_name(world.browser, "textarea", "bio")