fix(async stealth): wait the coroutine of the bounding box

This commit is contained in:
Karim shoair
2025-12-31 00:19:53 +02:00
parent 33c5633c58
commit f6f0ed4b37
+1 -1
View File
@@ -352,7 +352,7 @@ class AsyncStealthySession(AsyncSession, StealthySessionMixin):
# Double-checking that the iframe is loaded
await page.wait_for_timeout(500)
outer_box: Any = (await iframe.frame_element()).bounding_box()
outer_box: Any = await (await iframe.frame_element()).bounding_box()
if not iframe or not outer_box:
if "<title>Just a moment...</title>" not in (await ResponseFactory._get_async_page_content(page)):