The Prompt
Write a production-ready Selenium test script that automates the File Upload flow. Ensure you include assertions, handle async operations properly, and include at least two negative test cases. Provide comments explaining the logic.
How to use this prompt
Copy this prompt to ChatGPT or Claude. Add your specific DOM structure or API contract for the File Upload feature to get a customized Selenium test script.