Commit Graph

695 Commits

Author SHA1 Message Date
Saurav Panda 2344df3fac fix: pass through timeout_ms and clip params in event handlers 2026-03-07 14:34:08 -08:00
Laith Weinberger b630ae596e lint 2026-03-06 11:37:38 -05:00
Laith Weinberger b051fe2a7a don't explicitly pass newWindow: false to CDP createTarget 2026-03-06 11:28:36 -05:00
Saurav Panda 83908a7de1 Merge branch 'main' into ph-launch 2026-03-02 16:40:22 -08:00
Saurav Panda 10b5d1cd88 fix: allow cross-origin iframe targets with empty URLs through _is_valid_target() 2026-03-02 16:36:39 -08:00
Laith Weinberger 8ebe4385ed fix: preserve non-ASCII chars in all remaining JSON file outputs 2026-03-01 14:19:38 -05:00
Laith Weinberger 9932f06500 Merge main into fix/issue-4050-windows-proxy and resolve conflicts 2026-03-01 11:22:28 -05:00
laithrw 744c2be4ae Merge branch 'main' into issue-3523-fix 2026-02-26 21:05:37 -05:00
Laith Weinberger c8bfc86440 rm unused imports 2026-02-26 15:55:36 -05:00
Laith Weinberger 89817de334 Fix proxy auth attach handler overwriting tab tracking 2026-02-26 15:48:38 -05:00
Larsen Cundrič 2503c5f159 Merge branch 'main' into larsen/add-timeouts-to-browser-connects 2026-02-24 18:19:42 -08:00
LarsenCundric 505d5df406 Add timeouts to browser connects and waits 2026-02-24 18:13:28 -08:00
Saurav Panda 08bf06f734 Merge branch 'main' into websocket-connection-issues 2026-02-24 17:18:33 -08:00
Saurav Panda 719d0361e5 Fix reconnection wait timeout to cover full auto-reconnect window
The circuit breaker and agent error handler were using a hardcoded 20s
timeout, but the worst-case auto-reconnect window is ~48s (3 attempts *
15s + 7s delays). Handlers would raise ConnectionError while reconnection
was still in progress. Now both use BrowserSession.RECONNECT_WAIT_TIMEOUT
(54s) derived from the actual reconnect parameters.
2026-02-23 17:47:52 -08:00
Aitor c0528bec2d Merge branch 'main' into feat/add-captcha-solver-handling 2026-02-24 02:19:25 +01:00
Saurav Panda ea23b45daa Merge branch 'main' into websocket-connection-issues 2026-02-23 17:14:57 -08:00
Saurav Panda abd0326a6f Add WebSocket reconnection for remote browser CDP connections 2026-02-23 16:34:21 -08:00
Saurav Panda e50588f3c7 fixed styling issues 2026-02-23 15:24:40 -08:00
reformedot ed28e50806 feat: added automatic captcha solver handling via CAPTCHA watchdog 2026-02-23 10:51:02 -08:00
Saurav Panda 6713afc636 updated _navigate_and_wait 2026-02-21 19:45:54 -08:00
laithrw 2249e75fd8 Merge branch 'main' into improving-real-browser 2026-02-20 19:28:06 -05:00
LarsenCundric c9232a63ed Fix 2026-02-20 12:12:05 -08:00
LarsenCundric c67c31932e Fix 2026-02-20 10:57:00 -08:00
Laith Weinberger 4b81a4212d fix(storage_state): typing + format cleanup 2026-02-18 14:37:20 -05:00
Aitor 802f17cf91 Merge branch 'main' into feat/add-custom-headers-support-and-example 2026-02-18 06:22:42 +01:00
reformedot de659f9768 feat: add custom headres support + add example 2026-02-17 21:15:11 -08:00
Laith Weinberger fa51754895 fix(storage_state): await restore, normalize session cookies, scope storage to origin 2026-02-14 13:23:10 -05:00
Chase Xu d96fff3816 fix: only disable proxy for localhost CDP requests
Address review feedback: trust_env=False now only applies to localhost/127.0.0.1/::1.
Remote CDP URLs will still respect HTTP_PROXY/HTTPS_PROXY environment variables.
2026-02-09 20:55:30 -06:00
Chase Xu 2bd5211eb0 fix: disable proxy for localhost CDP requests (#4050)
On Windows with HTTP_PROXY/HTTPS_PROXY env vars set, httpx respects
these for localhost requests, causing 502 responses when querying
the CDP /json/version endpoint.

Adding trust_env=False prevents httpx from using proxy env vars,
ensuring localhost CDP communication works regardless of system
proxy configuration.
2026-02-09 20:55:30 -06:00
Laith Weinberger d8aef72702 lint 2026-01-27 11:58:25 -05:00
Laith Weinberger 77160b7d79 feat: add Browser.from_system_chrome() for real browser auto-detection
- auto-detects chrome executable and user data dir on macos/windows/linux
- auto-selects first available profile if none specified
- added Browser.list_chrome_profiles() to see available profiles
- updated examples to prompt user for profile selection
- fixed missing browser.stop() in save_cookies.py
2026-01-27 11:52:48 -05:00
kalil0321 038ae4bc8d Merge branch 'main' into kalil0321/har_watchdog 2025-12-25 17:10:05 +01:00
SK Akram 557b0c016e fix: expose prohibited_domains in BrowserSession 2025-12-16 07:25:35 +00:00
Mert Unsal dd56615996 Merge branch 'main' into kalil0321/har_watchdog 2025-12-14 13:13:20 -08:00
Gregor Žunič b1e4d6e686 primitive skills impl (with cookies) 2025-12-08 18:07:00 -08:00
Mert Unsal a742645416 Revert "Improve demo mode" 2025-11-29 13:09:20 -08:00
kalil0321 6dbdaab6b1 Attach watchdog only when record_har_path is provided 2025-11-27 20:26:23 +01:00
kalil0321 18ac299961 Merge branch 'main' into kalil0321/har_watchdog 2025-11-27 20:21:19 +01:00
mertunsall 7e98622594 Remove wrong log{ 2025-11-26 12:40:47 -08:00
Mert Unsal cb21a1b70e Merge branch 'main' into mert/fix_screenshot_bug 2025-11-26 12:32:47 -08:00
mertunsall d7600603a2 dont change agent focus outside? 2025-11-26 12:25:40 -08:00
Mert Unsal 89990d360d Merge branch 'main' into main 2025-11-26 11:02:10 -08:00
Mert Unsal 885ec7cc6f Merge branch 'main' into mert/fix_more 2025-11-26 10:33:39 -08:00
mertunsall ad1c9b070e fix 2025-11-26 10:33:06 -08:00
Mert Unsal 8808474a39 Merge branch 'main' into kalil0321/har_watchdog 2025-11-26 10:32:40 -08:00
Mert Unsal b53a593d33 Merge branch 'main' into kalil0321/har_watchdog 2025-11-26 10:28:34 -08:00
Mert Unsal 81fe5c0573 Merge branch 'main' into kalil0321/demo-mode 2025-11-26 10:28:04 -08:00
mertunsall b2c56f63c7 better 2025-11-24 12:37:57 -08:00
Cursor Agent 36b2b93d9b Replace broken mouse click with ClickCoordinateEvent
- Add ClickCoordinateEvent to handle coordinate-based clicking via CDP
- Replace broken page.mouse.click() with CDP Input.dispatchMouseEvent
- Add safety checks for file inputs, select elements, and print dialogs
- Add get_dom_element_at_coordinates() to BrowserSession for element detection
- Add force parameter to ClickElementAction to optionally skip safety checks
- Update _click_by_coordinate to dispatch ClickCoordinateEvent instead of using mouse

This fixes coordinate clicking functionality by using CDP directly instead of
the broken Actor mouse object, matching the implementation from mert/everything_coordinates.
2025-11-24 19:55:48 +00:00
shubham-021 b03d450c70 fix/linting_issue 2025-11-22 19:19:37 +05:30