TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I Made a Playwright Recorder

2 pointsby mjgoekeover 2 years ago
Playwright comes with a recorder, however I had a few killer features I wanted&#x2F;needed:<p><pre><code> 1. I need a repl to execute the &quot;next lines of code&quot; live, either in vscode or the browser. Without this I have to restart the entire test to get to the end and try the next line. 2. I need to be able to configure the selector to match application or lib specific UI pieces One-size-fits-all selectors isn&#x27;t working well for my company&#x27;s SPA 3. I need this to generate test code as good as I would write This means awareness of the page-object-model, and not just emitting raw selectors into my test </code></pre> As far as I&#x27;m aware these 3 killer features aren&#x27;t out there in the web automated test world. I tried to find them. When I couldn&#x27;t I began writing my own. I got the go-ahead from my workplace to continue implementing it, dogfood it, and even have it open sourced and published on npm.<p>@dnvgl&#x2F;playwright-live-recorder<p>feedback appreciated!

1 comment

mjgoekeover 2 years ago
I&#x27;m actively developing this, here&#x27;s my list of next things:<p><pre><code> * make the tool author new page-object-model files * workflow to append to page-object-model files * support nested page-object-models better (scope selector) * make playwright selectors work both ways (only work one-way right now, generating, not executing) * page-object-model patterns flexibility - embellish recorder rules with method parameters * add an animated gif to the top of the readme showing usage * clean up ui * margins&#x2F;alignment * add toggle to show&#x2F;hide</code></pre>