Skip to content

Chrome headless mode isn't working #115

@shengyilu

Description

@shengyilu

I followed the instruction to edit settings.py as :

SELENIUM_DRIVER_NAME = 'chrome'
SELENIUM_DRIVER_EXECUTABLE_PATH = '/Users/****/chromedriver'
SELENIUM_DRIVER_ARGUMENTS=['--headless']

However, the Chrome will be launched every time I run the spider.
BTW, with only Selenium, headless mode was working correctly:
options = Options()
options.add_argument("--headless")
driver = webdriver.Chrome(service = Service(ChromeDriverManager().install()), options = options)

Does anyone face the same problem? Need some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions