End to end¶
A complete example: load a form, fill it, submit it, and assert the result.
The fixture is a small HTML form. The button writes a greeting into a result node when clicked:
1 2 3 4 5 6 7 8 9 10 | |
The spec drives it through playwright-page and the matchers:
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
playwright-page opens a fresh page on the fixture for the example. The page
term (from use BDD::Behave::Playwright) returns that page. The action methods
(fill, click) come from WWW::Playwright's Locator; have-text polls until
the greeting appears, so there is no explicit wait.