Commit Graph

590 Commits

Author SHA1 Message Date
Magnus Müller
cc250ff87e Add element lookup helper methods to BrowserSession
Added two convenience methods for finding element indices:
- get_index_by_id: Find element by its id attribute
- get_index_by_class: Find element by class name

These methods simplify common DOM element lookup patterns when
working with selector maps.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 19:26:55 -07:00
Magnus Müller
aa500c9873 Linter 2025-10-21 21:26:10 -07:00
Magnus Müller
b678f27a3e Migration from highlight index to backendnode id 2025-10-21 21:02:28 -07:00
Reagan Hsu
eaad2c7e63 Merge branch 'main' into fix/keyboard-events-complete 2025-10-15 14:18:34 -07:00
Magnus Müller
4c7cf16042 add get_state_as_text 2025-10-15 11:35:24 -07:00
Reagan Hsu
b7ca829032 Apply code style fixes from pre-commit hooks
- Reorganize imports in default_action_watchdog.py
- Remove unused platform import at top level
- Add proper spacing in inline comments
- Reformat function signatures to single line
- Fix import order in play_2048.py

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 19:36:06 -07:00
Reagan Hsu
bc0ce8c226 Merge branch 'main' into fix/keyboard-events-complete 2025-10-13 19:29:16 -07:00
Reagan Hsu
81933bb20c update Page.press() to include event code and windowsVirtualKeyCode
removed invalid filter param in attachToTarget()

added more keys and better parsing for lowercase keys using get_key_info() to make sure that key presses are properly processed
2025-10-13 18:34:30 -07:00
Magnus Müller
9421b59ee5 Switch tabs 2025-10-12 16:06:25 -07:00
Magnus Müller
6568a4061f Remove activateTarget 2025-10-11 18:28:24 -07:00
Magnus Müller
dedd0db977 Not double parallel 2025-10-11 16:10:01 -07:00
Magnus Müller
40a591e4d2 Default function to get coords by backendnode id 2025-10-11 15:48:32 -07:00
Magnus Müller
b665d2bb85 Include scroll 2025-10-09 12:27:51 -07:00
Magnus Müller
02986c7d88 Offset 2025-10-09 11:58:15 -07:00
Magnus Müller
d0d732d48c Fly in highlights 2025-10-09 11:56:13 -07:00
Magnus Müller
1086a5634c Init 2025-10-09 11:44:07 -07:00
kalil0321
99c9beb3ce Merge branch 'main' into previous-highlighting 2025-10-08 23:04:59 +02:00
Magnus Müller
5601401c11 Add export_storage_state method to BrowserSession for cookie and storage export
- Introduced a new method `export_storage_state` that allows exporting browser cookies and storage in Playwright format.
- Added functionality to save the exported state to a specified JSON file.
- Updated example scripts to demonstrate the usage of the new method.
2025-10-01 23:00:00 -07:00
mertunsall
a4207a6ff9 fixes and large list example 2025-10-01 19:57:04 +02:00
kalil0321
b602600686 Update BrowserProfile and BrowserSession to utilize dom_highlight_elements for DOM highlighting 2025-09-29 15:51:31 +02:00
kalil0321
dca312273f Add dom_highlight_elements attribute to BrowserSession 2025-09-29 15:38:22 +02:00
kalil0321
4213e5c4a7 Merge branch 'main' into previous-highlighting 2025-09-29 14:34:32 +02:00
Magnus Müller
e496c3a93f Merge branch 'main' into speed-ups3 2025-09-22 18:24:21 -07:00
Magnus Müller
022a3e352f More robust switch and close tab 2025-09-22 18:04:29 -07:00
Mert Unsal
b9f05ed754 Merge branch 'main' into previous-highlighting 2025-09-23 03:00:35 +02:00
Mert Unsal
28d976ffb1 Merge branch 'main' into mert/improvepdf 2025-09-23 02:55:15 +02:00
mertunsall
3c41727b55 track session pdf urls and redownload if URL changes or if the file was left from previous session.
dispatch navigation complete even when switching tabs. this ensure auto pdf downloads work

increase max pdf pages to 20 so that it works better :)
2025-09-23 02:54:25 +02:00
Chris Schnabl
03608b62a2 Remove unused paramter 2025-09-21 21:38:42 -07:00
Magnus Müller
7e2d4de32c Timing 2025-09-19 19:36:53 -07:00
Gregor Žunič
0ceee655e3 Merge branch 'main' into feature/better-custom-actions 2025-09-19 11:23:42 -07:00
Gregor Žunič
504f8cad09 migrated Target to Page 2025-09-19 10:27:00 -07:00
Saurav Panda
77bf459bb5 updated docs and added link to signup for a api key 2025-09-18 18:20:07 -07:00
Saurav Panda
0a13273fc2 refc: renamed cloud_browser to use_cloud 2025-09-18 15:29:49 -07:00
kalil0321
56ab0484fe Fix highlighting system with browser-side highlights 2025-09-18 13:49:15 +02:00
Saurav Panda
85a2386c91 feat: added cloud_browser feature 2025-09-16 22:27:45 -07:00
Gregor Žunič
101d4d1c36 more switches to snake_case 2025-09-16 20:15:27 -07:00
Gregor Žunič
5e05224ffb switched to browsersession input 2025-09-15 21:25:32 -07:00
Gregor Žunič
e0f65ca892 v2 2025-09-15 21:11:46 -07:00
avocardio
c7dcb668bc fix: more lint errors 2025-09-08 09:47:07 -07:00
avocardio
9ce8416b50 fix: Use Path.write_bytes() to avoid SYNC230 lint error 2025-09-08 09:37:53 -07:00
avocardio
3336b9d55f feat: Add enhanced screenshot API 2025-09-08 09:14:32 -07:00
Magnus Müller
700910126a make iframe depth variable 2025-09-08 08:17:15 -07:00
Gregor Žunič
c2eede8e20 paint order filtering 2025-09-07 20:56:48 -07:00
Magnus Müller
2b1ee8715e enable StorageStateWatchdog if user_data_dir provided 2025-09-06 13:11:32 -07:00
Magnus Müller
e7ade83f4f Merge commit 'd58d2872c5ef9367e606dd155331bde3456de5ed' into feat/cdp-add-origins-storage-state 2025-09-06 13:02:25 -07:00
Magnus Müller
be6fd1a92e Add video recording configuration options to BrowserSession
- Introduced `record_video_framerate` and `record_video_size` parameters to the BrowserSession class for enhanced video recording capabilities.
- Updated example in video_recording.py to reflect changes, switching from BrowserSession to Browser for video recording setup.

This update allows users to customize video recording settings more effectively.
2025-09-06 12:29:19 -07:00
Enzo Biondo
1da79ca982 Merge branch 'main' into feat/video-recording 2025-09-06 14:43:33 -03:00
Magnus Müller
d7969c1a93 Merge branch 'main' into fix/cdp-viewport-initialization 2025-09-06 04:05:16 -07:00
r
c92ae8269b Remove unused screenshot constants
Removed MAX_SCREENSHOT_HEIGHT and MAX_SCREENSHOT_WIDTH constants that were not being used anywhere in the codebase.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-06 18:00:23 +09:00
Magnus Müller
37c177e840 reduce frequency_penalty 2025-08-31 14:19:39 -07:00