154 karma · joined May 20, 2023
I am building something that would probably benefit from this, but with that price tag (solo indy dev) that's going to be a big ask! might be worth it, just no way of knowing without trying it first
I'm excited to introduce Auto Playwright, an open-source tool that revolutionizes web testing by integrating AI with Playwright. Imagine writing your web app tests in plain, simple English and having AI turn those instructions into automated tests!
Key Features: - AI-Driven Test Writing: Just write what you need in plain text, and let the AI do the rest. - Playwright Compatibility: Works with all browsers compatible with Playwright. - Open-Source: Dive into the code, contribute, and customize as you see fit.
How It Works: 1. Install `auto-playwright` via npm. 2. Set up your OpenAI API key. 3. Write tests using intuitive, plain-text prompts.
Examples: From testing a search function with a few lines of text to automating complex e-commerce cart tests – it's all made incredibly simple.
test("auto Playwright example", async ({ page }) => {
await page.goto("/");
// `auto` can query data
// In this case, the result is plain-text contents of the header
const headerText = await auto("get the header text", { page, test });
// `auto` can perform actions
// In this case, auto will find and fill in the search text input
await auto(`Type "${headerText}" in the search box`, { page, test });
// `auto` can assert the state of the website
// In this case, the result is a boolean outcome
const searchInputHasHeaderText = await auto(`Is the contents of the search box equal to "${headerText}"?` { page, test });
expect(searchInputHasHeaderText).toBe(true);
});
Why It Matters: This isn't just about automating the usual; it's about rethinking test automation. It's faster, more intuitive, and accessible, even for those less familiar with traditional coding.Get Involved: I am building a community around Auto Playwright. Join us on Discord (https://ray.run/discord), contribute to the GitHub repo (https://github.com/lucgagan/auto-playwright), and stay updated with our newsletter (https://ray.run/newsletter).
Looking forward to your thoughts, feedback, and seeing how you use Auto Playwright in your projects!
Check out Auto Playwright on GitHub:
https://en.wikipedia.org/wiki/Playwright_(software)
Thanks!
https://en.wikipedia.org/wiki/Draft:Playwright_(software)
It is highly demotivating to try to write a quality article for Wikipedia because someone can just reject your days of work in seconds and then leave it in draft forever.
By the looks of it, I am taking a slightly different approach than you. I am using LLM only to identify elements, but the actual generators are created using https://ray.run/browser-extension
Took a bit of time to customize it, but you can match your website style pretty closely.
https://cse.google.com/cse?cx=210b5e0b95aee4c07&q=test#gsc.t...
I also tried Remix and that went a bit better. However, until they add support RSC, Next.js DX remains superior
As an end user, hard disagree.
GitHub is a great example of this. Their status almost always shows 100% uptime while the service is entirely unstable.
It is clear that their uptime SLAs do not align with end user experience.
As an end user, I care whether I can access and use the service. I don't care what broke in between.
> For example — we at SensusQ are building a piece of software that can ingest a large amount of disparate information pieces, be that drone images, satellite pictures, social media posts or text documents.
Congrats!
Do you have an article about how you got into it?
What are some startups in your area that are software?
What newsletters do you subscribe?
I would love to get more in the loop.