fix selenium tool

This commit is contained in:
Lorenze Jay
2025-01-21 15:55:05 -08:00
parent 0bd6006b27
commit 4af3724ec2

View File

@@ -163,7 +163,7 @@ class SeleniumScrapingTool(BaseTool):
if not re.match(r"^https?://", url): if not re.match(r"^https?://", url):
raise ValueError("URL must start with http:// or https://") raise ValueError("URL must start with http:// or https://")
options = Options() options = self._options
options.add_argument("--headless") options.add_argument("--headless")
driver = self.driver(options=options) driver = self.driver(options=options)
driver.get(url) driver.get(url)