fix none content frame (#659)
This commit is contained in:
@@ -60,6 +60,9 @@ async def resolve_locator(
|
|||||||
child_frame = iframe_path.pop()
|
child_frame = iframe_path.pop()
|
||||||
|
|
||||||
frame_handler = await current_frame.query_selector(f"[{SKYVERN_ID_ATTR}='{child_frame}']")
|
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()
|
content_frame = await frame_handler.content_frame()
|
||||||
if content_frame is None:
|
if content_frame is None:
|
||||||
raise NoneFrameError(frame_id=child_frame)
|
raise NoneFrameError(frame_id=child_frame)
|
||||||
|
|||||||
Reference in New Issue
Block a user