Verify login functionality using explicit wait instead of Thread.sleep
Preconditions (2)
Step 1: Open the login page URL
Step 2: Enter 'testuser@example.com' in the email input field with id 'email'
Step 3: Enter 'Test@1234' in the password input field with id 'password'
Step 4: Click the login button with id 'loginBtn'
Step 5: Wait until the dashboard page loads by checking the presence of element with id 'dashboardHeader'
Step 6: Verify that the current URL is 'http://example.com/dashboard'
✅ Expected Result: User is successfully logged in and dashboard page is displayed with correct URL