Commit 20544d86 by 宋鹏博

1

parent 90e5e8d7
......@@ -16,7 +16,7 @@ class DriverTools:
if cls.__driver is None:
cls.chrome_options = Options()
cls.chrome_options.add_argument("--headless")
cls.__driver = webdriver.Chrome(chrome_options=cls.chrome_options)
cls.__driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver',chrome_options=cls.chrome_options)
cls.__driver.maximize_window()
cls.__driver.implicitly_wait(10)
return cls.__driver
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment