Skip to content

The agent that turns websites into APIs!

fix: pr

kalil0321503234d21b5d
diff --git a/src/reverse_api/playwright_codegen.py b/src/reverse_api/playwright_codegen.py
index e9d0abf..f6a36ca 100644
--- a/src/reverse_api/playwright_codegen.py
+++ b/src/reverse_api/playwright_codegen.py
@@ -98,7 +98,7 @@ class PlaywrightCodeGenerator:
# Use json.dumps to safely escape newlines, quotes, and backslashes
lines.append(f" page.fill({json.dumps(action.selector)}, {json.dumps(action.value)})")
- elif action.type == "press" and action.selector:
+ elif action.type == "press" and action.selector and action.value is not None:
lines.append(f" page.press({json.dumps(action.selector)}, {json.dumps(action.value)})")
elif action.type == "navigate":