fill
Type into a labeled input field
Fill a field identified by its label (or find hint). The value after with is a payload — a * there is a literal character, not a glob.
Syntax
When I fill "<target>" [by …] with "<value>"Qualifiers
| Qualifier | Role | Example |
|---|---|---|
with | Value to type | fill "username" with "chamodh" |
by aria-label / by data-testid / by id / by name / by text / by role "…" | Optional find hint after the target | fill "Email" by aria-label with "a@b.com" |
Only one find strategy per step. Without by …, StrikeTest auto-finds the field.
Examples
When I fill "username" with "chamodh"
And I fill "password" with "1234"
When I fill "email" by name with "a@b.com"
When I fill "search" with "a*b"Notes
- Target
"username"is a match/lookup label —*in the target acts as a glob and must resolve to exactly one visible field. - Works on web and mobile (same label grammar).
Related
- click
- Find hints
- should — assert value after fill