from selenium.webdriver.chrome.options import Options
from selenium import webdriver


# 无界面模式
def ChromeDriverNOBrowser():
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')
driverChrome = webdriver.Chrome(executable_path="E:\\chromedriver",chrome_options=chrome_options)
return driverChrome

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-10-01
猜你喜欢
  • 2022-02-25
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案