Scenario: You are tasked with automating a test for a login feature on a demo web application. The scenario involves the following steps: Navigate to the login page at https://the-internet.herokuapp.com/login. Enter the username tomsmith and the password SuperSecretPassword!. Click the "Login" button. Verify that the user is redirected to the secure area (homepage) with the URL https://the-internet.herokuapp.com/secure. Confirm that the message "Welcome to the Secure Area. When you are done click logout below." is displayed on the page. Requirements: Write a concise and well-structured automation script for this scenario. Ensure the script is modular and follows best practices for maintainability and readability. Execution: The script must be designed to execute successfully using the provided URL and credentials. Ensure all verifications are dynamic and account for potential changes in response time or element visibility. Reporting: Add logic to capture and log test results, including: Test execution time. Pass/Fail status of each step. A summary of the overall test result. If the test fails, include a screenshot of the failure state in the report. Tools/Frameworks: You may assume the use of any modern UI automation framework such as Selenium, Playwright, or Cypress. For reporting, consider integrating tools like Allure, Extent Reports, or native reporting capabilities of the chosen framework. Goal: Your response should include: A step-by-step breakdown of how the automation script would look. Sample code for at least one of the steps. A high-level description of how the reporting functionality will be implemented.