4 ms·
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! $ ptplaywrigh
by wraptile 6y ago
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/ptplaywright https://github.com/Granitosaurus/bin/blob/master/ptplaywrigh...