- Move 4px placeholder screenshot constant to browser_use.browser.views
- Update all references to use the single definition
- Fix all lint errors and formatting issues
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
- Skip 4px placeholder screenshots when creating GIFs
- Find first real screenshot for task frame instead of using placeholder
- Add comprehensive tests for GIF filtering behavior
- Fixes issue where GIFs were generated at 4px dimensions
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
- Added ''menu'', ''menubar'', and ''menuitem'' to interactiveRoles set
- Uncommented ''listbox'' role
- Fixed tests to properly identify main ARIA menu by ID
- Added chromium_sandbox=False for CI environment compatibility
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
- Extended get_dropdown_options to detect and handle ARIA menus with role=menu
- Extended select_dropdown_option to click on ARIA menu items
- Added support for role=menu, role=listbox, and role=combobox elements
- Added tests for ARIA menu functionality
- Maintains backward compatibility with native select elements
Fixes#2471
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
- Fix test assertion: change assert result.success to assert result.success is not False
- Fix MCP parameter serialization: use model_dump(exclude_none=True) to exclude None values
- Fix pyright type checking errors: add proper type guards and use getattr for dynamic access
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
- Modified _json_schema_to_python_type to recursively create nested Pydantic models for object types with properties
- Fixed issue where nested object properties were being lost during parameter processing
- Added test_mcp_nested_object_parameters to verify nested objects are properly preserved
- Updated MockMCPServer to include process_trace_update tool with nested object schema
Fixes#2453
Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>