Commit Graph

1467 Commits

Author SHA1 Message Date
Nick Sweeting 21cb86e66a Merge branch 'main' into back-to-playwright 2025-05-12 05:31:23 -07:00
Nick Sweeting fa4871593a use default dir for chrome-profile 2025-05-12 05:31:09 -07:00
Nick Sweeting 0c577125c0 fix(context): add _is_visible method for better element visibility checks (#1636) 2025-05-12 05:05:58 -07:00
Anirudha619 1fa90996c4 when no_viewport is True then browser window size determines the viewport 2025-05-11 23:22:59 +05:30
satya-nutella 0b0319bb83 fix(context, service): streamline element visibility checks
- Replaced direct calls to `is_hidden` with a new `_is_visible` method for consistency in visibility checks across the context and service layers.
- Updated element selection logic to ensure only visible elements are scrolled into view, improving reliability and performance.
2025-05-11 08:56:17 -07:00
satya-nutella 34ff079c90 fix: linter 2025-05-11 08:49:54 -07:00
satya-nutella af2bbd5187 feat(context): add _is_visible method for better element visibility checks
- Introduced a new private method `_is_visible` to determine if an element is visible based on its hidden state and bounding box dimensions.
- Updated element selection logic to utilize the new visibility check, ensuring only visible elements are processed.
- Added .idea to .gitignore to exclude IDE-specific files from version control.
2025-05-10 18:41:02 -07:00
Nick Sweeting 96682d8910 switch back from patchright to playwright until issues are resolved 2025-05-09 18:14:07 -07:00
Valentin De Matos bf1def969d fix(context): no longer modify page on screenshot
Signed-off-by: Valentin De Matos <vltn.dematos@gmail.com>
2025-05-09 14:01:25 -07:00
Nick Sweeting de7b4e1c82 install pkg deps separately from playwright 2025-05-06 18:13:46 +08:00
Nick Sweeting 1b07c076c3 always use new headless mode 2025-05-06 18:02:25 +08:00
Nick Sweeting c3c492f2d7 click elements before typing into them, fallback to simulating keystrokes on page 2025-05-06 00:09:12 +08:00
Nick Sweeting 23252192a0 remove non-functional group tabs code 2025-05-04 19:40:27 +08:00
Nick Sweeting 4af9c9f1cd remove unused var 2025-05-04 18:49:55 +08:00
Nick Sweeting 7f065aafd9 massively improve foreground and agent current tab detection and viewport resizing 2025-05-04 17:56:51 +08:00
Nick Sweeting 8c97f892aa require clipboard-read and write permissions by default and warn when missing 2025-05-04 17:53:36 +08:00
Nick Sweeting d08b402101 finish updating last few locations where nested window_size was used 2025-05-04 00:29:29 +08:00
Nick Sweeting ebdeb613f7 fix security issue with url parsing 2025-05-03 23:50:37 +08:00
Nick Sweeting bee5dc3784 removing the browser channel from the _setup_browser in browser.py (#1538) 2025-05-03 01:25:56 -07:00
Nick Sweeting 8774dd48be BREAKING CHANGE: remove window_size=BrowserWindowContextSize(width, height) in favor of flat window_width and window_height (#1557) 2025-05-03 00:52:08 -07:00
Nick Sweeting 4b1e15d8bd remove BrowserWindowContextSize in favor of window_width and window_height attrs 2025-05-03 15:32:42 +08:00
satya-nutella 7811a1cceb Refactor event listener tracking in BrowserSession and BrowserContext
- Removed old init script for event listener tracking in BrowserSession.
- Introduced a new event listener tracking mechanism in BrowserContext using WeakMap for better memory management.
- Updated buildDomTree to utilize the new getEventListenersForNode function for interaction event listeners.
2025-05-02 12:56:41 -07:00
Nick Sweeting 7e9296e340 add clipboard permissions at startup 2025-05-03 03:17:24 +08:00
Nick Sweeting c693e5b6a8 remove custom chrome flags now that we use patchright 2025-05-03 03:16:52 +08:00
Nick Sweeting 2be4ba4f70 more pyupgrade changes 2025-05-02 20:50:21 +08:00
CodingWithoutBugs 5ccbca4468 removing the browser channel from the _setup_browser in browser.py
It seems that having the channel specified to 'chrome' is causing Chrome not to open, it's possible the class should be 'chromium'. I tried a variety of combinations and noticed that once the channel was gone the browser opened up and worked well again.
2025-05-01 18:53:20 -07:00
Sandeep Salwan 361fb82142 Fix: Respect user-provided no_viewport setting in browser sizing 2025-04-30 21:14:08 -07:00
Sandeep Salwan b4133b8912 Fix browser_window_size not changing window size in non-headless mode 2025-04-29 18:02:29 -07:00
Nick Sweeting f283f3abf8 Merge branch 'main' into fix/browser-window-size 2025-04-29 02:30:10 -07:00
Nick Sweeting 5171fa09e4 replace CHROME_DEBUGGING_ARG with hardcoded fstring 2025-04-26 21:37:19 -04:00
Prenit Wankhede 0b21e50ca6 allow providing chrome_remote_debugging_port in browser config. fix launching user provided chrome browser. 2025-04-26 15:11:25 +04:00
Prenit Wankhede b50bb22167 fix status code when checking if chrome browser is already running 2025-04-26 11:46:12 +04:00
Sandeep Salwan e0565496e8 ruff 2025-04-24 18:30:39 -04:00
Sandeep Salwan a10d7e4288 Fix browser_window_size not changing window size in non-headless mode 2025-04-24 18:13:33 -04:00
Nick Sweeting 02fb682d04 Merge pull request #1310 from cclauss/ruff_check_--select=ASYNC 2025-04-21 15:10:57 -07:00
Nick Sweeting e5546ede69 Merge pull request #1412 from kalil0321/main 2025-04-21 14:56:46 -07:00
Nick Sweeting 1cf4104ed3 fix async errors in features/pause_agent.py 2025-04-21 14:27:36 -07:00
kalil0321 5163c81ea2 Merge branch 'main' into main 2025-04-21 23:03:49 +02:00
Christian Clauss fb3282527d Detect blocking synchronous commands in asyncio code 2025-04-21 22:30:43 +02:00
Nick Sweeting 1ac623f798 Merge pull request #857 from neo773/bot-detection-batch 2025-04-21 09:56:27 -07:00
Edward Sun cd938016bb Fix: newlines in attribute values 2025-04-17 18:40:26 -07:00
kalil0321 c6ffe81d90 format 2025-04-18 02:56:26 +02:00
kalil0321 a9bdad4ba2 add force_new_context docstring
in BrowserContextConfig
2025-04-18 02:48:20 +02:00
kalil0321 f4985879c3 fix #1405: HAR file is not saved 2025-04-18 02:17:18 +02:00
Nick Sweeting 72c6abdabf Update browser_use/browser/context.py 2025-04-16 19:04:48 -04:00
Nick Sweeting 49ef4fca50 Merge branch 'main' into fix-web-voyager-example 2025-04-16 16:04:08 -07:00
Nick Sweeting 49f943cfac Merge pull request #1352 from zacka026/main 2025-04-16 16:03:26 -07:00
Nick Sweeting 68d98e77fb Merge branch 'main' into bot-detection-batch 2025-04-16 15:29:16 -07:00
Nick Sweeting 8e127b42d6 dump models properly instead of casting 2025-04-16 15:27:02 -07:00
Nick Sweeting 2ea79ecd92 fix config merging between browser and context 2025-04-16 15:19:58 -07:00