From f6f0ed4b37fa2f48d386ebe7ee2a693a5b882d2c Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Wed, 31 Dec 2025 00:19:53 +0200 Subject: [PATCH] fix(async stealth): wait the coroutine of the bounding box --- scrapling/engines/_browsers/_stealth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapling/engines/_browsers/_stealth.py b/scrapling/engines/_browsers/_stealth.py index 0a4c912..7b05c1b 100644 --- a/scrapling/engines/_browsers/_stealth.py +++ b/scrapling/engines/_browsers/_stealth.py @@ -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 "Just a moment..." not in (await ResponseFactory._get_async_page_content(page)):