def test_no_label(self): assert not find_field_by_label(world.browser, 'text', 'NoSuchLabel')
def test_no_label(self): from aloe_webdriver.util import find_field_by_label assert not find_field_by_label(world.browser, 'text', 'NoSuchLabel')
def test_find_by_label(self): field = find_field_by_label(world.browser, 'text', 'Username:'******'id'), 'username')
def test_find_by_label(self): from aloe_webdriver.util import find_field_by_label assert find_field_by_label(world.browser, 'text', 'Username:')
def test_no_label(self): assert not find_field_by_label(world.browser, "text", "NoSuchLabel")
def test_find_by_label(self): field = find_field_by_label(world.browser, "text", "Username:"******"id"), "username")