centos上でselenium Headless Chromeを動かすとエラーでた selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist selenium
centos上でselenium Headless Chromeを動かすとエラーでた
■以下のエラー
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn t exist
■driverで以下を指定すると回避できて、無事うごいた
chrome_options = ChromeOptions()
chrome_options.add_argument( --headless )
chrome_options.add_argument( --no-sandbox )
chrome_options.add_argument( --disable-dev-shm-usage )
driver = webdriver.Chrome( [パス指定]/chromedriver chrome_options=chrome_options)