HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lucgagan

no profile record

Submissions

Replacing GitHub Copilot with Local LLMs

glama.ai
4 points·by lucgagan·il y a 2 ans·0 comments

Building free tools is a not a viable long-term SEO strategy

8 points·by lucgagan·il y a 2 ans·8 comments

Ask HN: What constitutes plagiarism in open-source?

1 points·by lucgagan·il y a 3 ans·4 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

Ask HN: What's a good community to ask SEO questions?

1 points·by lucgagan·il y a 3 ans·2 comments

Ask HN: What's the best way to add search to my website?

5 points·by lucgagan·il y a 3 ans·12 comments

Ask HN: Has anyone migrated from Next.js to Astro and can offer a perspective?

3 points·by lucgagan·il y a 3 ans·3 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

Modeling Polymorphic Associations in a Relational Database

hashrocket.com
1 points·by lucgagan·il y a 3 ans·0 comments

Show HN: Chrome Dev Tools Element Selector for Playwright and Scraping

ray.run
53 points·by lucgagan·il y a 3 ans·10 comments

[untitled]

1 points·by lucgagan·il y a 3 ans·0 comments

Detecting and Handling Flaky Tests in Playwright

ray.run
23 points·by lucgagan·il y a 3 ans·16 comments

Ask HN: Which companies are using playwright/test?

1 points·by lucgagan·il y a 3 ans·0 comments

Comparing Automated Testing Tools: Cypress, Selenium, Playwright, and Puppeteer

ray.run
3 points·by lucgagan·il y a 3 ans·0 comments

Getting JSON with TypeScript types from ChatGPT response

twitter.com
2 points·by lucgagan·il y a 3 ans·0 comments

Show HN: Built a QA job board ONLY for companies using playwright/test

ray.run
3 points·by lucgagan·il y a 3 ans·4 comments

comments

lucgagan
·il y a 4 mois·discuss
Here goes my project.
lucgagan
·l’année dernière·discuss
Can confirm. My website is flooded with AI bots despite attempts to block crawlers to certain parts of it.
lucgagan
·il y a 2 ans·discuss
Correct me if I am wrong, but these implementations are all CPU bound?, i.e. if I have a good GPU, I should look for alternatives.
lucgagan
·il y a 2 ans·discuss
Woah, this is very _fun_!
lucgagan
·il y a 2 ans·discuss
Something similar I worked on in the past https://github.com/lucgagan/auto-playwright/
lucgagan
·il y a 3 ans·discuss
Very cool. I've been using a similar approach to summarize videos on my website https://ray.run/videos/112-playwright-installation-2022 Doesn't cost much and getting great feedback about it.
lucgagan
·il y a 3 ans·discuss
Is there a way to try this before I buy it?

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
lucgagan
·il y a 3 ans·discuss
Thanks for the response. I paused for a day responding to everyone to think through all the feedback I've received, and shared an update https://github.com/lucgagan/auto-playwright/issues/15
lucgagan
·il y a 3 ans·discuss
Theirs is a commercial project with MIT client. I made an open-source version of their project. (Their backend is closed source. I have no knowledge of it.)
lucgagan
·il y a 3 ans·discuss
If I was the creator of the project, I'd be happy with it. Most companies would not have donated anything.
lucgagan
·il y a 3 ans·discuss
Most people I would imagine
lucgagan
·il y a 3 ans·discuss
This looks great. I wish I had this a few months ago! Giving it a try.
lucgagan
·il y a 3 ans·discuss
Hello HN community!

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://github.com/lucgagan/auto-playwright
lucgagan
·il y a 3 ans·discuss
Ended up publishing to mainspace as per the guidance of a few commenters.

https://en.wikipedia.org/wiki/Playwright_(software)

Thanks!
lucgagan
·il y a 3 ans·discuss
Contributing to Wikipedia has become really not fun. Or maybe it never was. I tried writing an article about Playwright - perhaps the most common test automation tool these days. It first got rejected and now just has been sitting in review state for 3 months.

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.
lucgagan
·il y a 3 ans·discuss
I am building _exactly_ the same thing for Playwright over at https://ray.run/. I think this is the future of writing tests no doubt. Planning to launch next week.

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
lucgagan
·il y a 3 ans·discuss
Their demo crashes when I try to use it
lucgagan
·il y a 3 ans·discuss
It honestly looks not too bad!

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...
lucgagan
·il y a 3 ans·discuss
The only downside is that it seems you cannot disable promotions/ads
lucgagan
·il y a 3 ans·discuss
Very interesting. You are even allowed to upload your own search annotations, i.e. suggestions for search results. https://cse.google.com/cse?cx=210b5e0b95aee4c07#gsc.tab=0 The end result is not too bad considering it is entirely free!