Commit Graph

664 Commits

Author SHA1 Message Date
reformedot 027fae6c23 fix: improved session manager 2025-11-06 21:10:26 -08:00
reformedot 62c0495ef0 fix: enable page monitoring on already existing targets 2025-11-06 17:53:56 -08:00
reformedot 29915de253 chore: linting 2025-11-06 16:26:10 -08:00
reformedot 052286e630 feat: improved navigate to URL event logic and wait mechanism 2025-11-06 16:20:51 -08:00
kalil0321 7185151229 Format 2025-11-06 13:58:40 +01:00
kalil0321 2c7067b0bf Add HarRecordingWatchdog for HTTPS HAR capture 2025-11-06 13:56:43 +01:00
Mert Unsal bc7b353316 Merge branch 'main' into mert/click_by_coordinate 2025-11-01 14:00:09 -07:00
mertunsall 4dca53282c add clicking by coordinate 2025-11-01 13:58:15 -07:00
Gregor Žunič 5e428e829b Merge branch 'main' into feature/remote-code 2025-10-31 12:19:39 -07:00
Gregor Žunič 9c88c5a828 better cloud params 2025-10-30 13:05:41 -07:00
Magnus Müller 4951002ae3 Linter 2025-10-30 11:10:56 -07:00
Magnus Müller 7468ca2e3f Remove old method 2025-10-30 11:08:49 -07:00
Magnus Müller e5fb13d2ca Wait 1 s after navigation 2025-10-30 10:05:13 -07:00
Magnus Müller 49cf6cd459 Session fix input breaks 2025-10-30 00:44:44 -07:00
Magnus Müller f8ca1ab3b4 Logs 2025-10-29 23:53:12 -07:00
Magnus Müller 9e93a92ba4 Include popup msg into browser state 2025-10-29 21:18:20 -07:00
Aitor 5682f4a993 Merge branch 'main' into feat/improve-session-manager 2025-10-29 02:27:23 +01:00
Magnus Müller 00b11e1e27 Add method to retrieve target ID from CDP session ID and enhance DownloadsWatchdog with global network response handling
- Introduced `get_target_id_from_session_id` method in `BrowserSession` to facilitate lookup of target IDs from CDP session IDs.
- Updated `DownloadsWatchdog` to register a global network response callback, improving detection of downloadable content.
- Enhanced error handling and logging for network response events to ensure better tracking of downloads and potential issues.

These changes aim to improve the reliability and functionality of session management and download monitoring in the browser automation framework.
2025-10-27 22:30:53 -07:00
Magnus Müller 4258546098 Add DOM serializer test templates and improve logging
- Introduced new HTML templates for DOM serializer tests, including a main page and an iframe template.
- Enhanced logging in the BrowserSession to provide clearer insights when fetching the CDP client for target nodes, improving traceability during debugging.
- Updated tests to utilize the new HTML templates, ensuring better structure and maintainability.

This update aims to enhance the robustness of the DOM serializer tests and improve error handling in session management.
2025-10-26 22:44:42 -07:00
Magnus Müller 06d0efc289 Improve logging for CDP client retrieval in BrowserSession
- Enhanced error handling when fetching the CDP client for a target node.
- Updated log message to include a warning with the last four characters of the target ID for better traceability.
- Ensured fallback to the main session is clearly indicated in the logs.

This change aims to provide clearer insights during debugging and improve the robustness of the session management.
2025-10-26 22:26:26 -07:00
reformedot 3a21ce805d fix: don't focus when generating DOMTree in _get_viewport_ratio 2025-10-26 06:42:10 -07:00
reformedot 54e4dacbf9 feat: improved session manager 2025-10-26 06:05:49 -07:00
Gregor Žunič a3c6fd8025 changed browser use api key creation url everywhere 2025-10-25 10:38:10 -07:00
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
AndyJado b2d9f91752 new tab in headless respect window size 2025-10-21 11:01:33 +08: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