- 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.
This commit updates the Playwright integration example in `playwright_integration.py` to provide a clearer overview of its key features. The previous detailed description has been condensed into a more concise format, highlighting the main functionalities of sharing a Chrome instance via CDP and the ability to perform actions with both Playwright and Browser-Use.
- **Documentation Update**
- Simplified the example description for better clarity and focus on key features.
This commit introduces a new example demonstrating the integration of Playwright with Browser-Use. The example showcases how to start Chrome with CDP enabled, create custom actions for form filling, taking screenshots, and extracting text using Playwright's capabilities. It includes necessary dependency checks and a main function to orchestrate the workflow using an AI agent.
- **New Features**
- Implemented custom actions: `playwright_fill_form`, `playwright_screenshot`, and `playwright_get_text`.
- Added error handling and dependency checks for required libraries.
- Provided detailed documentation within the code for clarity on usage and functionality.
- Added pattern to .gitignore for temporary profile directories.
- Introduced a new example script demonstrating how to run multiple agents with separate browser instances using asyncio.
- Simplified the example code for better clarity and usability.
- Added new section for "Multiple Browser Instances" with example code for running agents in parallel using separate browser instances.
- Updated "Keep Open" documentation to reflect changes in task execution, simplifying the agent run process.
- Revised "Real Browser" documentation to clarify connection methods and updated example code for better usability.
- Removed outdated content from "Remote Browsers" section to streamline information and improve clarity.