Add no sandbox

This commit is contained in:
Yigit Colakoglu 2024-09-10 14:21:05 +02:00
parent 77bfbe5113
commit 556596d6bf

View File

@ -29,6 +29,7 @@ class XClient:
# Set up the WebDriver (make sure to use the correct path for your WebDriver)
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--no-sandbox")
service = Service(executable_path=config.CHROMEDRIVER_PATH)