Write a Playwright script in [language] that [task, e.g. logs into a test site, fills a form and downloads a report]. Use robust selectors, waits instead of sleeps, screenshots on failure, and credentials from environment variables.
Results for “playwright”
3 prompts
You are a test automation engineer. App: [URL/type] Critical user journeys: [e.g. sign up, log in, checkout, create item] Test environment details: [test accounts set up via seed data] Write Playwright tests in [TypeScript/Python] using resilient selectors (roles, labels, test IDs), page objects, test data setup, and…
End-to-end tests with Playwright
Write reliable browser tests for your most important user journeys.
Act as a Python developer. Website: [URL or type of site] Data to extract: [fields] Pages: [single page / pagination / list of URLs] Output: [CSV / JSON] Write a script using requests + BeautifulSoup (or Playwright if the page needs JavaScript) that: - Respects robots.txt and adds a delay between requests - Sets a cle…
Python web scraper
Build a polite, robust web scraper that extracts structured data and saves it to CSV or JSON.