-
Notifications
You must be signed in to change notification settings - Fork 31
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
Doesn't work on Chrome #91
Comments
What version of Playwright are you using and what website are you using? I tried an example with Chromium and it solved it with no issues: from playwright.sync_api import sync_playwright
from playwright_recaptcha import recaptchav2
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=False)
page = browser.new_page()
page.goto("https://www.google.com/recaptcha/api2/demo")
with recaptchav2.SyncSolver(page) as solver:
token = solver.solve_recaptcha(wait=True)
print(token) |
Hello! Here it doesn't really run using Chrome, it only runs if headless=True. I'm using version playwright==1.33.0 Which one do you run on your machine? |
Try updating Playwright to the latest version with the command: |
Hello! It looked like this: from playwright.sync_api import sync_playwright with sync_playwright() as playwright:
|
Glad to see that you fixed the issue. This library currently supports English and Russian reCAPTCHA, however I could add support for your language as well if you don't mind telling me what it is. |
Hello! |
Yea sure, my contact information is on my GitHub profile. |
Hi, how are you?
Do you know why it doesn't run in Chrome when we use headless=False?
example:
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=False)
He opens the browser but does not resolve recaptcha and does not even click on recaptcha.
That doesn't work either.
with sync_playwright() as playwright:
browser = playwright.chromium.launch(channel='chrome',headless=False)
only works in Firefox.
Thank.
The text was updated successfully, but these errors were encountered: