Automation lab Aú Locators & Basic Actions (LOCATORS_BASIC)

Lab 001: Successful login

Practice successful login in a real web app context as part of the Locators & Basic Actions module.

basic basic
basic

Objectives

Use for test scripts
  • Understand the purpose and business flow of successful login.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Locators & Basic Actions · web-ui · basic · active

Successful login

Practice successful login in a real web app context as part of the Locators & Basic Actions module.

Reading and understanding requirements Choosing stable locators Designing assertions based on business rules

Learning objectives

  • Understand the purpose and business flow of successful login.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Steps

  1. Open the lab page in the browser.
  2. Identify the key UI elements involved in this scenario.
  3. Describe the expected user flow for this scenario.
  4. Automate the steps of the flow using your chosen framework.
  5. Add assertions to validate the expected results.

Expected results

  • The business flow works end-to-end as expected.
  • All key UI elements behave according to the requirements.
  • Assertions clearly prove the behavior is correct.

Practice sandbox

Run the successful login flow here.

Live

Waiting for input

Hints for automation

  • Validate button enabled only when both fields are non-empty.
  • Assert success message on valid email + password combination.