Zaczero/2Captcha

Any luck with Outlook Rotatecaptcha?

razanjoshi opened this issue · 1 comments

According to 2Captcha api, we have to send them the captcha images for RotateCaptchas but on Outlook, the captcha image are being rendered via some JS tricks as we can not even inspect the image url from the canvas. I was wondering if you have any knowledge around it that can help solve my issue.
image

When using Selenium/Puppeteer/Playwright there should be a way to take the page screenshot. Then, you can get element's bounding box (X,Y,W,H) by calling a small JavaScript code: https://stackoverflow.com/a/11396681, and crop the screenshot accordingly.

-- or --

You can simply dump the canvas to a data URL and retrieve it that way: https://stackoverflow.com/a/3514404. This should be a more elegant (and preferred) approach in my opinion.