Page Modeller 作者: Dan Humphrey
Page Modeller enables developers to scan a web page and generate page object style code for Playwright, Puppeteer and Selenium.
44 个用户44 个用户
扩展元数据
屏幕截图
关于此扩展
Browser DevTools extension for modelling web pages for automation.
Pick an element on any page — or scan a whole form at once — and Page Modeller names it, works out a locator that resolves to it, and generates page object style code you can paste into your tests.
Currently generates code for:
Each target offers a full page object or just the locators, and Selenium also generates methods — so it fits whatever conventions your project already has.
Version 3 is a complete rewrite. It runs in Chrome and Firefox, reaches elements inside iframes and inside a web component's shadow DOM, prefers accessible roles and names over brittle CSS paths, and checks that every locator it gives you actually resolves to the element you picked.
Suggestions and bug reports are welcome on GitHub:
https://github.com/danhumphrey/page-modeller/issues
Pick an element on any page — or scan a whole form at once — and Page Modeller names it, works out a locator that resolves to it, and generates page object style code you can paste into your tests.
Currently generates code for:
- Playwright (TypeScript)
- Playwright (Python)
- Selenium WebDriver Java
- Selenium WebDriver C#
- Selenium WebDriver Python
- Puppeteer
Each target offers a full page object or just the locators, and Selenium also generates methods — so it fits whatever conventions your project already has.
Version 3 is a complete rewrite. It runs in Chrome and Firefox, reaches elements inside iframes and inside a web component's shadow DOM, prefers accessible roles and names over brittle CSS paths, and checks that every locator it gives you actually resolves to the element you picked.
Suggestions and bug reports are welcome on GitHub:
https://github.com/danhumphrey/page-modeller/issues
评分 5(1 位用户)
权限与数据
更多信息