refactor: remove debug print

This commit is contained in:
martin legrand 2025-03-23 21:24:05 +01:00
parent e74bbe4044
commit 8c77f3eddb
3 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin python3 #!/usr/bin python3
# NOTE this script is temporary and will be improved
from flask import Flask, jsonify, request from flask import Flask, jsonify, request
import threading import threading
import ollama import ollama

View File

@ -75,7 +75,6 @@ class BrowserAgent(Agent):
remaining_links_text = remaining_links if remaining_links is not None else "No links remaining, do a new search." remaining_links_text = remaining_links if remaining_links is not None else "No links remaining, do a new search."
inputs_form = self.browser.get_form_inputs() inputs_form = self.browser.get_form_inputs()
inputs_form_text = '\n'.join(inputs_form) inputs_form_text = '\n'.join(inputs_form)
print("Visible form:\n", inputs_form_text)
return f""" return f"""
You are a web browser. You are a web browser.

View File

@ -308,7 +308,6 @@ class Browser:
if not xpath: if not xpath:
continue continue
element = self.driver.find_element(By.XPATH, xpath) element = self.driver.find_element(By.XPATH, xpath)
print("found-->", element)
input_type = (element.get_attribute("type") or "text").lower() input_type = (element.get_attribute("type") or "text").lower()
if input_type in ["checkbox", "radio"]: if input_type in ["checkbox", "radio"]:
is_checked = element.is_selected() is_checked = element.is_selected()