added default button to cli

This commit is contained in:
Dillon DuPont
2025-08-13 12:28:37 -04:00
parent 2c20bde3f0
commit a46f8ae50d

View File

@@ -94,7 +94,7 @@ def print_action(action_type: str, details: Dict[str, Any], total_cost: float):
# Format action details
args_str = ""
if action_type == "click" and "x" in details and "y" in details:
args_str = f"_{details['button']}({details['x']}, {details['y']})"
args_str = f"_{details.get('button', 'left')}({details['x']}, {details['y']})"
elif action_type == "type" and "text" in details:
text = details["text"]
if len(text) > 50: