diff --git a/autogpt/commands/web_selenium.py b/autogpt/commands/web_selenium.py index 021d149c..9b64ac2e 100644 --- a/autogpt/commands/web_selenium.py +++ b/autogpt/commands/web_selenium.py @@ -64,13 +64,7 @@ def scrape_text_with_selenium(url: str) -> Tuple[WebDriver, str]: options.add_argument( "user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.49 Safari/537.36" ) - options.add_argument( - '--no-sandbox' - ) - options.add_argument( - '--headless' - ) - + if CFG.selenium_web_browser == "firefox": driver = webdriver.Firefox( executable_path=GeckoDriverManager().install(), options=options