Login functionality using action methods in Page Object
Preconditions (2)
Step 1: Open the browser and navigate to 'https://example.com/login'
Step 2: Enter 'testuser@example.com' in the email input field
Step 3: Enter 'Test@1234' in the password input field
Step 4: Click the login button
Step 5: Verify that the user is redirected to the dashboard page with URL containing '/dashboard'
✅ Expected Result: User is successfully logged in and dashboard page is displayed