This step definition acts as a command to select an option from a dropdown list.
When (I|we)* select "([^"]*)?" from "([^"]*)?" by( its)*( "([^"]*)?")* (attribute|attr)Define the step for selecting an option by its text in the select element specified by ID, class, name, or any other attribute.
Example by direct calling of ID, class:
When I select "Mercedes" from "#cars"by attrWhen I select "Mercedes" from ".cars" by attribute
Or match any of the field attributes:
When we select "Mercedes" from "cars" by its "id" attributeWhen we select "Saab" from "cars" by its "name" attrWhen we select "Mercedes" from "cars" by attr