Commit Graph

222 Commits

Author SHA1 Message Date
Nick Sweeting
4ffd6bedc0 handle mixed order action params 2025-05-25 06:14:05 -07:00
Nick Sweeting
addeb56f8c add new param optimization test 2025-05-25 03:50:02 -07:00
Nick Sweeting
e9b2462b49 convert actions to take a page when thats all they need 2025-05-25 03:39:53 -07:00
Nick Sweeting
10ec1e8841 fix all actions to use kwargs at callsites 2025-05-25 02:58:17 -07:00
Nick Sweeting
d2ac59e211 refactor action registration to consistently require params or args and kwargs 2025-05-25 01:38:18 -07:00
Nick Sweeting
75f14c4784 checkpoint 2025-05-24 20:41:44 -07:00
Nick Sweeting
3f614ab9df simplify _replace_secrets func to take page obj directly 2025-05-24 02:20:52 -07:00
Nick Sweeting
e0a02faa7f avoid strange hacky check for first param type by variable name prefix 2025-05-24 02:19:44 -07:00
Nick Sweeting
6c05043e10 better comments 2025-05-23 18:23:18 -07:00
Nick Sweeting
6a19f29082 move SpecialActionParameters into views file 2025-05-23 18:21:19 -07:00
Evgeny Kim
5da261310b Improve file upload detection 2025-05-23 13:05:06 +02:00
Nick Sweeting
50ade97062 simplify open_tab action 2025-05-23 00:58:09 -07:00
Nick Sweeting
f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Nick Sweeting
fbf52be11b improve logging and use scheme matching for google urls 2025-05-22 23:25:17 -07:00
Nick Sweeting
6b8360c475 better logging 2025-05-22 23:17:21 -07:00
Nick Sweeting
38d8b6acec Merge branch 'main' into security-improvements 2025-05-22 17:11:16 -07:00
Nick Sweeting
472d462fa7 minor fixes for proxy models and positional args in google sheets actions 2025-05-22 17:06:22 -07:00
Nick Sweeting
651db76040 fix multiple browser_session arg error 2025-05-22 07:01:51 -07:00
Nick Sweeting
5cbb48a718 tweak controller action param setup to avoid double browser_session arg 2025-05-22 06:55:47 -07:00
Nick Sweeting
643a88b734 Fix async function call in Google Sheets select_cell_or_range
Made select_cell_or_range an async function and properly await the call to _select_cell_or_range to fix TypeError.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 05:00:36 -07:00
Nick Sweeting
187641f695 add support for nested sensitive_data 2025-05-22 04:58:23 -07:00
Nick Sweeting
c50b3bd828 fix browser_session decorating 2025-05-22 03:32:05 -07:00
Magnus Müller
4bd407f6c5 Enhance extract_content action to include link retrieval option
- Updated the `extract_content` action to add an `include_links` parameter, allowing users to specify whether to include links in the extracted content.
- Revised the action's description for clarity, emphasizing the structured format of the output when links are included.
2025-05-22 12:05:05 +02:00
Magnus Müller
9261112c51 Add new action to retrieve accessibility tree from the current page
- Introduced a new asynchronous action `get_ax_tree` that extracts the accessibility tree of the current page in a "role name" format.
- Implemented a helper function to flatten the accessibility tree structure and log the results.
- Enhanced logging to provide insights into the accessibility structure of the page for better debugging and analysis.
2025-05-22 12:03:34 +02:00
Nick Sweeting
b92fffae2e fix google sheets example 2025-05-22 02:30:43 -07:00
Nick Sweeting
cb4a5145f2 fix two bugs in BrowserSession and controller action passing 2025-05-22 02:30:41 -07:00
Nick Sweeting
a84b1c6d6b Merge branch 'main' into browser-session 2025-05-20 03:10:37 -07:00
Nick Sweeting
86ec6a78b0 new BrowserSession and BrowserProfile design, renamed BrowserState to BrowserStateSummary and more 2025-05-20 02:31:54 -07:00
Guido Trevisan
2c7dd75bf0 Apply Ruff formatting 2025-05-17 20:11:05 -05:00
Guido Trevisan
f94d889640 fixed scroll when whole page lives inside a nested container 2025-05-17 19:24:03 -05:00
Nick Sweeting
90dad4a39a refactor to use new BrowserSession model 2025-05-17 04:54:13 -07:00
Nick Sweeting
21cb86e66a Merge branch 'main' into back-to-playwright 2025-05-12 05:31:23 -07:00
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
Nick Sweeting
96682d8910 switch back from patchright to playwright until issues are resolved 2025-05-09 18:14:07 -07:00
Nick Sweeting
28906fd5d6 print a warning if any required sensitive data keys are not defined 2025-05-04 20:18:52 +08:00
Nick Sweeting
23252192a0 remove non-functional group tabs code 2025-05-04 19:40:27 +08:00
Nick Sweeting
3323a3ca21 remove unused var assignment 2025-05-04 18:43:24 +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
af849b5c4d add google sheets support using keyboard shortcuts directly to main controller 2025-05-03 03:20:13 +08:00
Nick Sweeting
2be4ba4f70 more pyupgrade changes 2025-05-02 20:50:21 +08:00
Bohdan Petryshyn
cfb628f2ee fix: preserve pydantic model in _replace_sensitive_data
Signed-off-by: Bohdan Petryshyn <b.y.petryshyn@gmail.com>
2025-04-29 07:52:22 +08:00
Nick Sweeting
6f3184f100 Merge pull request #1313 from Haskely/fix/use-ainvoke-for-async 2025-04-21 11:41:43 -07:00
Nick Sweeting
1ac623f798 Merge pull request #857 from neo773/bot-detection-batch 2025-04-21 09:56:27 -07:00
Nick Sweeting
dc59dedbb5 cleanup console colors on exit and silence some unneeded debug logs 2025-04-16 18:11:46 -07:00
Nick Sweeting
8ba3e570e6 Merge branch 'main' into bot-detection-batch 2025-04-16 15:19:02 -07:00
Gregor Žunič
922ad08fd7 removed random unnecesary functions from controller 2025-04-14 11:22:55 +02:00
Gregor Žunič
facab7c9d1 Merge branch 'main' into gregor/lib-53-fix-extraction-layer-problems 2025-04-14 11:15:01 +02:00
Gregor Žunič
dd29dfb7c7 removed click_element_by_text and click_element_by_xpath from default controller 2025-04-14 09:55:55 +02:00
neo773
c33c3aeb35 Merge branch 'main' into bot-detection-batch 2025-04-12 07:25:58 +05:30
LarsenCundric
5d30fefb42 Ensure element handle is visible before trying to scroll into view 2025-04-09 16:58:22 +02:00