Ejemplo n.º 1
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')
Ejemplo n.º 2
0
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)
Ejemplo n.º 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')
Ejemplo n.º 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")