diff --git a/agent.py b/agent.py index f06c9db..90c518a 100644 --- a/agent.py +++ b/agent.py @@ -272,11 +272,12 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu return {"status": "invalid_input", "items": [], "saved_paths": [], "warnings": ["url is required"], "screenshots": []} # Initial validation (if selectors are provided) + selectors = seed_selectors or {"title": "title"} if selectors: v = _validate_inputs( url=start_url, selectors=selectors, - max_pages=per_pass_max_pages, + max_pages=max_pages, max_pages_limit=self.config.max_pages_limit, wait_seconds=wait_seconds, output_format=output_format,