mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
fix selenium tool
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user