def select_single_item(self, option_name, select_name): """ Select the named option from select with label (recommended), name or id. """ option_box = find_option(world.browser, select_name, option_name) assert option_box, "Cannot find option '{}'.".format(option_name) option_box.click()
def assert_single_selected(self, option_name, select_name): """ Assert the given option is selected from the select with label (recommended), name or id. If multiple selections are supported other options may be selected. """ option = find_option(world.browser, select_name, option_name) assert_true(option.is_selected())
def assert_single_selected(self, option_name, select_name): """ Assert the given option is selected from the select with label (recommended), name or id. If multiple selections are supported other options may be selected. """ option = find_option(world.browser, select_name, option_name) assert option.is_selected(), "Option should be selected."
def assert_single_selected(self, option_name, select_name): option_box = find_option(world.browser, select_name, option_name) assert_true(option_box.is_selected())
def select_single_item(self, option_name, select_name): option_box = find_option(world.browser, select_name, option_name) option_box.click()
def select_single_item(self, option_name, select_name): """ Select the named option from select with label (recommended), name or id. """ option_box = find_option(world.browser, select_name, option_name) option_box.click()