Skip to content

Feat/test dependency#3

Open
YoussefMehany wants to merge 22 commits into
developfrom
feat/test-dependency
Open

Feat/test dependency#3
YoussefMehany wants to merge 22 commits into
developfrom
feat/test-dependency

Conversation

@YoussefMehany
Copy link
Copy Markdown
Collaborator

This pull request introduces a new modular and extensible browser automation framework, adds robust configuration management, and refactors core integration points to support easier usage and testing. The main themes are the addition of new browser and crawler subsystems, improved configuration handling, and enhanced element interaction logic.

New browser subsystem:

  • Introduced a modular browser package with lazy-imported BrowserEngine, plus new utilities for browser actions (BrowserActions), frame resolution (FrameResolver), page management (PageManager), state capture (StateManager), JavaScript loading (JsLoader), and storage state normalization. These utilities encapsulate browser automation, error handling, and state tracking. [1] [2] [3] [4] [5] [6] [7]

Crawler subsystem improvements:

  • Added a new crawler package with lazy-imported core classes (CrawlSession, ActionRepeatLimiter, etc.) and a new enums module defining ActionType, HtmlTag, and InputType for strong typing of crawler actions and elements. [1] [2]

Configuration management overhaul:

  • Refactored Config to use a dataclass with a from_env constructor, supporting type-checked, slot-based configuration, and automatic environment variable parsing for all settings.
  • Updated the project structure to include a pyproject.toml for modern Python packaging and dependency management.

Element interaction and identification enhancements:

  • Improved interactable element detection in get_interactable_elements.js to use visible text for selectors (especially for buttons and links), and enhanced signature generation for more robust element identification. [1] [2]

Integration and usage refactoring:

  • Refactored example_usage.py to use the new create_graph interface, updated configuration paths, and improved resource cleanup. [1] [2] [3]
  • Removed the unused element_display_hint function for code cleanliness.

These changes lay the foundation for a scalable, testable, and maintainable browser crawling and testing framework.

@YoussefMehany YoussefMehany requested a review from Mo2Hefny May 8, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants