This code uses Selenium WebDriver with Java to automate the manual test case.
First, it sets up the ChromeDriver and opens the login page URL.
It uses WebDriverWait with ExpectedConditions.elementToBeClickable to wait until the login button with ID loginBtn is clickable. This avoids timing issues.
Then it checks if the button is displayed and enabled before clicking it, ensuring the element is interactable.
If the button is ready, it clicks the button and prints a success message.
Any exceptions are caught and printed to help debug failures.
Finally, the browser is closed with driver.quit() to clean up resources.