Enrich response handling with POM (Page Object Model) #1700
WebStrider
started this conversation in
Ideas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is one well known practice in automation testing discipline - Page Object Model (initially described by M. Fowler) which became on of shiny patterns in testing world. for example with Selenium, with Playwright, and just as the handy pattern to decouple and isolate presentation login from other app layers etc
But besides of that POM is totally usable and in scrappers world. one of the best examples is Scrapy with scrapy-poet extension.
scrapy-poet project by him self is based on another one (actually is an implementation of specification) - web-poet project. And the latter is a really cool example how POM principles could be used togeather with scrappers, its really handy coz allows a dev to keep DOM accessing/parsing logic separated from all the other app's parts.
It would be awasome if you will add something similar to Crawlee or just implement the most important parts from web-poet client specification, and this simple tutorial will show why this is so cool.
Beta Was this translation helpful? Give feedback.
All reactions