Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng committed Dec 17, 2024
1 parent 9b9edbb commit 03b18fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,13 @@ async def handle_click_action(
step_id=step.step_id,
workflow_run_id=task.workflow_run_id,
)
if page == browser_state.browser_context.pages[-1]:
LOG.warning(
"The extra page is the current page, closing it",
task_id=task.task_id,
step_id=step.step_id,
workflow_run_id=task.workflow_run_id,
)
# close the extra page
await browser_state.browser_context.pages[-1].close()
else:
Expand Down

0 comments on commit 03b18fe

Please sign in to comment.