When I fill in "value" for "field"

This step definition describes entering a specific value into a particular field on the website being tested using a field label.

When (I|we)* fill in "([^"]*)?" for "([^"]*)?"

 

This step is usually used when a specific input text field needs to be filled with a particular value to perform an event whose results depend on the entered value.

 

Example:

When I fill in "Jhon Smith" for "Username"