Skip to content

Commit

Permalink
[apps/browser] improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Sep 10, 2024
1 parent 506c733 commit 53491fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/browser/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def take_screenshot():

prompt = h9.input()
site = site_find(prompt)

print(f"Navigating to {site}")
driver.get(site)

for i in range(1, 5):
Expand All @@ -44,7 +46,7 @@ def take_screenshot():
except Exception as e:
print(f"Failed to use browser, details follow.\n```\n{code}\n```\n\n```\n{e}\n```\n")

prompt = h9.input("Taking screenshot, what next?")
prompt = h9.input(f"Taking screenshot for step {i}/5, what next?")

driver.quit()

Expand Down

0 comments on commit 53491fd

Please sign in to comment.