Selenium WebDriver 4

Type into a text field

Easy30 pts~12 min
  • sendKeys
  • Input value
Practice app · Workshop Registration

A registration form with text fields, radios, checkboxes, selects and validation.

Test URL
/lab/qa-automation-type-into-a-text-field

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Type into text inputs and verify their values.

Your task

  1. 1Open TEST_URL.
  2. 2Type “Ada” into #first-name and “Lovelace” into #last-name.
  3. 3Read each field’s value and assert it matches what you typed.

Acceptance criteria

  • sendKeys is used
  • #first-name holds “Ada”
  • #last-name holds “Lovelace”
  • At least 2 assertions pass

Selenium WebDriver 4 · QA Automation · Interactions