Skip to content

No interface to specify the Chrome Path cause selenium problem #1

@honorinli151

Description

@honorinli151

In the Webrowser.py by default, the parameter chromeDriverPath=None, and then in the package Webcrawler.py, by default we use chrome, but no path specification possibility of chrome is in the API of Class Crawler. So still chromeDriverPath=None. And in the function initSeleniumDriver(self, retry=True),

if self.chromeDriverPath is not None:
                    params["executable_path"] = self.chromeDriverPath
                self.driver = webdriver.Chrome(**params)

With chromeDriverPath=None, we will never get params["executable_path"] = self.chromeDriverPath, so we will always get errror while using chrome with Class Crawler

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

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