Playwright Code Generator - Click and Record Tests

preview_player
Показать описание
In this video we will be using Playwright Codegen from the Playwright command line interface. Running Codegen you can start up at a blank page or pass your page's url to start the tool at your website. Codegen will make it very quick to create a general script and you can choose a couple different versions of the Playwright syntax to choose from.

Also in the tool are some debugging tools so you can see what Playwright sees. You can navigate to a page and look for selectors or see why selectors in your test aren't finding what you are looking for. In general the Codegen is really nice for learning the syntax and you can easily copy and paste the commands that are valuable. Generally you can clean up the test generated by deleting the extra lines and possibly choosing other selectors that you know will work better.

Рекомендации по теме
Комментарии
Автор

Why did I find your channel so late :D

theillo