To fill in input boxes, you can use
We can fill the "Email" field with "email@example.com", and the "Password" field with "supersecretpassword" like this:
I.goTo("https://www.github.com") I.click("Sign in") I.fill("Email", "firstname.lastname@example.org")I.fill("Password", "supersecretpassword")I.click("Sign in") I.see("Incorrect username or password.")
When you are ready, click Next below.
Note for developers:
While UI-licious will make the best attempt to identify the input field by evaluating common coding patterns for labelling input fields, but it's always best to provide semantic
<label>s for your input fields, or label them with
ARIAattributes to improve the accuracy of the test engine picking the correct input field to act on. Plus, this also makes your application more accessible to visually impaired people who rely on screen readers to assist them.