Selenium WebDriver 4

Clear and re-enter input

Easy30 pts~12 min
  • clear()
  • Input value
Practice app · Profile Settings

A settings page for clicking, typing, reading text/attributes/CSS and element state.

Test URL
/lab/selenium-clear-and-re-enter-input

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

Objective

Replace a pre-filled value instead of appending to it, then save.

Your task

  1. 1Open TEST_URL and assert #display-name starts as “Alex Tester”.
  2. 2Clear #display-name and type “Jordan QA”.
  3. 3Click #save-button and assert #save-status shows “Profile saved”.
  4. 4Assert the field value is exactly “Jordan QA”.

Acceptance criteria

  • clear() is used
  • #display-name holds exactly “Jordan QA”
  • #save-status is visible
  • At least 2 assertions pass

Selenium WebDriver 4 · Selenium · Interactions