puppeteer-sharp
puppeteer-sharp copied to clipboard
Feature Request: Implement Interfaces for Browser/Page classes
When prototyping projects, especially for testing, it would be a lot nicer if Page implemented an IPage with all of it's main methods/events. I could then mock up my own page class (With something like Moq) which I could create my own implementation to return specific data, or track how many times methods get called. Right now, this isn't really possible with PuppeteerSharp.
I think I would review a PR with this change. It would be quite massive thought.
+1 an IBrowser interface would be awesome for the Browser object, so I can mock it during unit testing
I've created #1965 which extracts most of the public API into interfaces. Anyone interested please provide feedback there.
Hey guys Any news on the topic?