Skip to content

Commit

Permalink
fix chrome options flag syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpalmieri committed May 17, 2024
1 parent 42c1af0 commit 4776d7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def default_init_code(self) -> Any:
if self.headless:
chrome_options.add_argument("--headless")
if self.chrome_user_dir:
chrome_options.add_argument(f"user-data-dir={self.chrome_user_dir}")
chrome_options.add_argument(f"--user-data-dir={self.chrome_user_dir}")
chrome_options.add_argument("--no-sandbox")

self.driver = webdriver.Chrome(options=chrome_options)
Expand Down

0 comments on commit 4776d7f

Please sign in to comment.