Updated browser configuration for better resolution and enabled screenshots on failures. Implemented automatic screenshot attachment for failed scenarios to enhance debugging and reporting. Minor refactors and improvements for clarity and functionality.