I select particular number of item in selection on Lettuce test and simply by:
1 2 3 4 | @step(‘I select item "([^"]*)" from "([^"]*)"’) def i_select_item_number_from_select(step, number, select_name): world.browser.find_by_xpath(‘//select[@name="%s"]/option[%s]’ % (select_name, number)).click() |