Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: CLI argument default conflict for highlight_elements

Magnus Mülleraeea1788fadd
diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yaml
index d5f0848ba..d8e7e389e 100644
--- a/.github/workflows/eval.yaml
+++ b/.github/workflows/eval.yaml
@@ -193,7 +193,7 @@ jobs:
[[ "${{ github.event.client_payload.script_args.enable_memory }}" == "true" ]] && CMD_ARGS+=("--enable-memory")
[[ "${{ github.event.client_payload.script_args.validate_output }}" == "true" ]] && CMD_ARGS+=("--validate-output")
[[ "${{ github.event.client_payload.script_args.include_result }}" == "true" ]] && CMD_ARGS+=("--include-result")
- [[ "${{ github.event.client_payload.script_args.highlight_elements }}" == "true" ]] && CMD_ARGS+=("--highlight-elements")
+ [[ "${{ github.event.client_payload.script_args.highlight_elements }}" == "false" ]] && CMD_ARGS+=("--no-highlight-elements")
# Add optional string parameters
[[ -n "$USER_MESSAGE" ]] && CMD_ARGS+=("--user-message" "$USER_MESSAGE")
diff --git a/eval/service.py b/eval/service.py
index dbbfcb3c2..88ab87463 100644
--- a/eval/service.py
+++ b/eval/service.py
@@ -2191,9 +2191,11 @@ if __name__ == '__main__':
help='Include result flag (functionality to be implemented)',
)
parser.add_argument(
- '--highlight-elements',
- action='store_true',
- help='Highlight interactive elements on the page for better visibility',
+ '--no-highlight-elements',
+ action='store_false',
+ dest='highlight_elements',
+ default=True,
+ help='Disable highlighting of interactive elements on the page (highlighting is enabled by default)',
)
parser.add_argument(
'--laminar-eval-id',