{"repo":"Getsoren/playsmart","free":true,"listed":false,"github":"https://github.com/Getsoren/playsmart","clone":"git clone https://github.com/Getsoren/playsmart.git","description":"Playwright > Playsmart! Write reusable and maintainable E2E tests like a human.","language":"Python","stars":11,"topics":["automation","e2e","llm","playwright","prompt","playsmart"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"Playwright! Playsmart! ---------------------- End the never ending game of having to manually record, inspect, and update your E2E tests with Playwright. https://github.com/user-attachments/assets/8e5602b7-341c-4dd7-b623-028a08a5a8e7 🎮 See the Playsmart code for the hacker news demo ! This chunk of code[...] will become nicer, isn't it? Get started! Install Playsmart via PyPI requires Python 3.10+ Before you get started, either: - export OPENAI API KEY - or set openai key=... parameter within Playsmart class constructor. Here's the minimum runnable example: Interactive playground! Don't want to start coding? Rather see it working via a CLI? We got you covered! Run python -m playsmart or directly playsmart to get a fast and friendly testing playground. Example: Don't forget to set OPENAI API KEY in your environment, or you will be prompted for it! OpenAI TPM Errors Did you get an error immediately? Ensure your OpenAI project can accept higher limits! See https://platform.openai.com/docs/guides/rate-limits?context=tier-five to learn more. Your DOM might be too large to be processed by our library. Usually it is because you embed large scripts in your DOM like when you use a development (webpack/vite live/dev render) server. Caching We know how painful consuming needlessly tokens can be. That's why Playsmart have a tiny caching layer that helps with keeping LLM hints. You may at any moment disable the cache for a specific instruction as: A discrete file, named .playsmart.cache ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Getsoren","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Getsoren/playsmart/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}