When I fill in "field" with "value" by its attribute

Fill an input field located by its attribute.

Step pattern

When (I |we )*fill in "([^"]*)?" with "([^"]*)?" by( its)*(?: "([^"]*)?")* (attribute|attr)

Examples

Example #1
When I fill in "#uname" with "John Smith" by attr
Example #2
When I fill in "uname" with "John Smith" by attr
Example #3
And I fill in "pwordcss" with "1234" by "class" attr
Example #4
And I fill in "Your full name" with "John Smith" by its "placeholder" attribute