News for hackers. Stuff that matters.
Re:Playwright CLI – Open/inspect/emulate pages, generate scr... by wraptile on Sunday September 20, 2020 @03:34AM (#24532497)
As soon as python bindings came out I made a `promt-toolkit` based shell[1] for playwright and it has been such a time saver for prototyping!

    $ ptplaywright
    > goto('https://news.ycombinator.com')
    # click on first comments link
    > click('.subtext>a:last-of-type')
    # type in text in comment box
    > type('textarea', 'hello world')
I was about to refactor it to a whole package and submit it to pypi if anyone is interesting in this sort of behaviour.

https://github.com/Granitosaurus/bin/blob/master/ptplaywrigh...

There are no comments on this comment yet.