You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JavaScript puppeteer library has an optional parameter to the connect function called targetFilter (see here). The description of this feature is: Callback to decide if Puppeteer should connect to a given target or not.. This is also documented in their API document here.
This would be a valuable feature to add to the Dart puppeteer library as well. The reason this feature is useful, is that it would allow users of the library to filter out targets that puppeteer should ignore.
For my particular use case, I would like to prevent Puppeteer from loading existing pages in the browser when Puppeteer first connects (mostly for performance reasons).
Given that the Dart library already has TargetFilters, I feel the lift on this addition to the Dart library would be pretty light. If this seems reasonable to the maintainers of this project, I can put up a Pull Request with the proposed changes. Thank you.
The text was updated successfully, but these errors were encountered:
The JavaScript puppeteer library has an optional parameter to the
connect
function calledtargetFilter
(see here). The description of this feature is:Callback to decide if Puppeteer should connect to a given target or not.
. This is also documented in their API document here.This would be a valuable feature to add to the Dart puppeteer library as well. The reason this feature is useful, is that it would allow users of the library to filter out targets that puppeteer should ignore.
For my particular use case, I would like to prevent Puppeteer from loading existing pages in the browser when Puppeteer first connects (mostly for performance reasons).
Given that the Dart library already has TargetFilters, I feel the lift on this addition to the Dart library would be pretty light. If this seems reasonable to the maintainers of this project, I can put up a Pull Request with the proposed changes. Thank you.
The text was updated successfully, but these errors were encountered: