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')
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)
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")