forked from DrakeHooks/CasinoClaim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelperAPI.py
More file actions
25 lines (20 loc) · 721 Bytes
/
helperAPI.py
File metadata and controls
25 lines (20 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Drake Hooks
# Casino Claim 2
# Helper API
"""Utility helpers used across the bot."""
import asyncio
async def open_captcha_solver_page(driver):
"""Open the captcha solver extension page."""
try:
# Open the extensions page first so the extension context is loaded
driver.get("chrome://extensions")
await asyncio.sleep(2)
# Navigate directly to the captcha solver popup
driver.get(
"chrome-extension://hlifkpholllijblknnmbfagnkjneagid/popup/popup.html#/"
)
await asyncio.sleep(5)
return True
except Exception as e: # pragma: no cover - best effort
print(f"Failed to open captcha solver page: {e}")
return False