This step definition describes entering an empty value into a specific field on the website being tested.
When (I|we)* fill in "([^"]*)?" with: by( its)*( "([^"]*)?")* (attribute|attr)
This step is usually used when a text field needs to be empty.
This field can be specified by id | class | name | placeholder for the field. It is possible to add or not add a sign “.” for class, and "#" for id.
Example by direct calling of ID, class:
When I fill in "#username" with: by attribute
When we fill in ".username" with: by attr
Or match any of the field attributes:
When I fill in "username" with: by attr
When I fill in "username" with: by its "name" attr
When I fill in "username" with: by its "placeholder" attribute