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
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
- Open the lab page in the browser.
- Identify the key UI elements involved in this scenario.
- Describe the expected user flow for this scenario.
- Automate the steps of the flow using your chosen framework.
- 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.
Hints for automation
- Validate button enabled only when both fields are non-empty.
- Assert success message on valid email + password combination.