Appium 2

Handle a keyboard and hide it

Medium70 pts~25 min
  • Soft keyboard
  • Text input
Practice app · Acme Mobile

A mobile app in a device frame. Elements expose data-accessibility-id (= aria-label) for AppiumBy.accessibilityId.

Test URL
/lab/appium-handle-a-keyboard-and-hide-it

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

Objective

Deal with the soft keyboard during login so it never covers the button you need.

Your task

  1. 1Type the username into "username" and hide the keyboard.
  2. 2Type the password into "password", assert the keyboard is shown, then hide it and assert it is hidden.
  3. 3Tap "login", then answer the permission dialog.
  4. 4Assert the inbox is displayed.

Acceptance criteria

  • The keyboard is hidden explicitly
  • Login succeeds
  • At least 1 assertion passes

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Waits & context