-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrapy Playwright load chrome extensions and configure them #310
Comments
async def init_page(page, request):
context = page.context
if len(context.background_pages) == 0:
background_page = await context.wait_for_event('backgroundpage')
else:
background_page = context.background_pages[0] Otherwise you'll need to elaborate on your use case. |
Thanks! Will look into it. |
Hello, Goal is to load chrome extensions. I have minimum reproducible example. I still can’t figure out how to load extensions. One example that loads any extension would be greatly appreciated. My code uses scrapy-playwright to make request with persistent context and attempts to load chrome extension. Chrome extension is obtained from: Following commands are executed: Expectations: Test done with clean playwright: Tests done with same anticaptcha-plugin_v0.67 folder inside clean playwright as well as in regular Chrome browser: Versions: playwright --version scrapy version -v |
Do you have ready to go method to init chrome extension of captcha service and configure it before visiting the page and obtaining page context?
The text was updated successfully, but these errors were encountered: