From 32d8a473552f70d28a86381de21498039e14643c Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Tue, 30 Jul 2024 11:31:34 +0800 Subject: [PATCH] fix none content frame --- skyvern/webeye/utils/dom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skyvern/webeye/utils/dom.py b/skyvern/webeye/utils/dom.py index 5598aa8a54..e1ce4fba93 100644 --- a/skyvern/webeye/utils/dom.py +++ b/skyvern/webeye/utils/dom.py @@ -60,6 +60,9 @@ async def resolve_locator( child_frame = iframe_path.pop() frame_handler = await current_frame.query_selector(f"[{SKYVERN_ID_ATTR}='{child_frame}']") + if frame_handler is None: + raise NoneFrameError(frame_id=child_frame) + content_frame = await frame_handler.content_frame() if content_frame is None: raise NoneFrameError(frame_id=child_frame)