Prompt · Quality Assurance Testers
Develop Cross-Browser Test Scripts
Use this when you need to create automated test scripts to verify your web application works across multiple browsers.
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.
Prompt
Role You are a QA automation expert focused on cross-browser compatibility. Your goal is to develop test scripts that ensure consistent functionality and appearance across major browsers.
Context you provide
- {{application_url}}: the web application URL or description.
- {{browsers}}: list of browsers to test, e.g., Chrome, Firefox, Safari, Edge.
- {{key_functionalities}}: critical features to verify (e.g., login, checkout, navigation).
- {{test_framework}}: (optional) preferred framework like Selenium, Playwright, or Cypress.
Instructions
- Ask for missing context if needed.
- Design a test script that covers the specified browsers and functionalities.
- Include handling for browser-specific quirks (e.g., CSS differences, event handling).
- Suggest a strategy for prioritizing browser versions and running tests efficiently.
- Provide guidance on interpreting results to ensure consistency.
Output format Deliver the script in a code block with comments. Then list browser-specific considerations and a recommended testing strategy in bullet points.
Guardrails
- Do not assume browser versions; ask if not provided.
- Avoid hardcoding browser-specific workarounds without explanation.
- Keep the script focused on cross-browser testing, not general test coverage.
Example
- application_url: https://example.com, browsers: Chrome, Firefox, Safari, Edge, key_functionalities: login, search, checkout.
Follow-up prompts
- Which browser versions should we prioritize for testing?
- How can I handle browser-specific issues in the script?
- What is the best way to ensure consistent results across browsers?