This commit modifies the `download_file.py` example to replace the `BrowserSession` and `BrowserProfile` with the new `Browser` class. The changes streamline the code and enhance clarity by directly utilizing the `Browser` for managing downloads. The download path remains set to a temporary directory for testing purposes.
This commit updates the DownloadsWatchdog class to ensure that the downloads directory path is properly expanded and resolved to an absolute path. The changes include:
- Expanding the downloads path using `expanduser()` and `resolve()` methods to handle user home directories correctly.
- Updating the download behavior settings to use the expanded path.
- Ensuring that the downloads directory is created with the resolved path.
Additionally, the example feature for downloading files has been modified to use a temporary downloads path for testing purposes.
- 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.
- Added a type ignore comment to the agent initialization line to prevent type checking errors related to the sensitive_data parameter.
This change improves compatibility with type checkers while maintaining code clarity.
- Updated sensitive_data definitions to remove type annotations for clarity.
- Simplified the structure of sensitive_data in multiple files, ensuring consistency in credential representation.
- Enhanced comments to guide users on the proper use of sensitive data in the context of 2FA and domain-specific credentials.
These changes improve the readability and maintainability of the code while ensuring secure handling of sensitive information.
- Changed the wildcard entry for Google credentials to a specific domain.
- Added a new entry for a universal email credential that works across all domains.
These updates improve the clarity and specificity of sensitive data handling.
- Rearranged pages in the documentation for better organization.
- Updated icons and descriptions in `browser-basic` and `chain-agents` sections for clarity.
- Added new sections for "Secure Setup" and "More Examples" to provide comprehensive guidance on advanced use cases.
- Improved the `fast-agent` example with clearer speed optimization instructions.
- Refined the `browser-real-browser` documentation to simplify the connection description.