Click a link or button by its attribute (id, class, name, data-*).
Step pattern
When (I |we )*click "([^"]*)?" by( its)*(?: "([^"]*)?")* (attribute|attr)Examples
Example #1
When I click "#about-us-id" by attrExample #2
When I click "data-selector-about" by attributeExample #3
And I click "about-us-css" by "class" attrExample #4
And I click "about-us-id" by its "id" attribute