Improve dev containers so autogpt can browse the web

This commit is contained in:
Benedict Hobart
2023-04-16 15:45:38 +00:00
committed by Pi
parent 955a5b0a43
commit 8f0d553e4e
3 changed files with 8 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ def scrape_text_with_selenium(url: str) -> tuple[WebDriver, str]:
# See https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari
driver = webdriver.Safari(options=options)
else:
options.add_argument("--no-sandbox")
driver = webdriver.Chrome(
executable_path=ChromeDriverManager().install(), options=options
)