Skip to content

Commit 9439c7c

Browse files
fix: Remove Google popup handling logic
- Modifies the `agent_code_assembler` to remove the logic that automatically clicks the "Accept all" button on the Google consent popup. - The browser maximization logic remains in place as requested.
1 parent c3c578f commit 9439c7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/robot_generator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ def agent_code_assembler(steps: List[LocatedStep], query: str) -> str:
240240
if step.value:
241241
line += f" {step.value}"
242242
lines.append(line)
243+
244+
# If the browser is opened, automatically maximize it
245+
if step.keyword == "Open Browser":
246+
lines.append(" Maximize Browser Window")
247+
243248
lines.append(" [Teardown] Close Browser")
244249
return "\n".join(lines)
245250

0 commit comments

Comments
 (0)