Feat/test dependency#3
Open
YoussefMehany wants to merge 22 commits into
Open
Conversation
…_url checkpoint, clean up the code
…ies and saves them as json in neo4j
…e responsibility file splitting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
CrawlSession,ActionRepeatLimiter, etc.) and a newenumsmodule definingActionType,HtmlTag, andInputTypefor strong typing of crawler actions and elements. [1] [2]Configuration management overhaul:
Configto use a dataclass with afrom_envconstructor, supporting type-checked, slot-based configuration, and automatic environment variable parsing for all settings.pyproject.tomlfor modern Python packaging and dependency management.Element interaction and identification enhancements:
get_interactable_elements.jsto 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:
example_usage.pyto use the newcreate_graphinterface, updated configuration paths, and improved resource cleanup. [1] [2] [3]element_display_hintfunction for code cleanliness.These changes lay the foundation for a scalable, testable, and maintainable browser crawling and testing framework.