Update login.py

This commit is contained in:
zhao-zg 2025-03-29 17:37:02 +08:00 committed by GitHub
parent 697210b4b6
commit fe9918caec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -794,6 +794,10 @@ async def verification(page):
el = await page.querySelector(
"#captcha_modal > div > div.captcha_footer > div > div.sp-msg"
)
if not el
el = await page.querySelector(
"#captcha_modal > div > div.captcha_footer > div > img"
)
box = await el.boundingBox()
distance = await get_distance()
await page.mouse.move(box["x"] + 10, box["y"] + 10)