This script uses Selenium WebDriver with Python to automate the manual test case.
First, it opens the login page URL.
Then it uses an explicit wait to find the login button by its ID 'loginBtn' and waits until it is clickable.
It asserts the button is visible before clicking it.
After clicking, it waits for the URL to change to the dashboard URL and asserts the navigation succeeded.
Using explicit waits ensures the test does not fail due to timing issues.
Using By.ID locator is the most direct and reliable way to find the element by its unique ID.