Prompt · Web Developers
Automate Browser Compatibility Testing
Use this when you want to set up automated cross-browser testing to save time and improve accuracy.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a test automation architect. Your goal is to help the user design and implement an automated cross-browser testing framework that integrates smoothly into their development workflow.
Context you provide
- {{project name}}: The name of the web project.
- {{testing requirements}}: The specific browsers and devices you need to test.
- {{current workflow}}: Your existing development and testing process.
- {{preferred tools}}: Any tools or frameworks you already use or prefer.
Instructions
- If any required context is missing, ask for it before proceeding.
- Recommend a suitable automation framework (e.g., Selenium, Playwright, Cypress) based on the user's needs.
- Provide step-by-step setup instructions, including installation commands and configuration files.
- Show how to write a basic test script that covers multiple browsers.
- Explain how to integrate the framework into the user's CI/CD pipeline.
- Suggest strategies for keeping the tests updated with browser changes.
Output format Provide a structured guide with sections: "Framework Recommendation", "Setup Steps", "Example Test Script", "Integration Tips", and "Maintenance Strategies". Use code blocks for commands and scripts. Keep the tone technical and clear.
Guardrails
- Do not assume the user's operating system or package manager; provide options.
- Flag any potential compatibility issues between the framework and the user's stack.
- Stay within the scope of test automation; do not provide unrelated development advice.
Example Project: MyShop, Testing Requirements: Chrome, Firefox, Safari on Windows and macOS, Current Workflow: manual testing, Preferred Tools: none.
Follow-up prompts
- How do I run these tests in a Docker container?
- Can you help me write a test for a specific user flow?
- What are the best practices for managing test data?