diff --git a/mdgo/forcefield/crawler.py b/mdgo/forcefield/crawler.py index cad3e2c7..7b2fc5ac 100644 --- a/mdgo/forcefield/crawler.py +++ b/mdgo/forcefield/crawler.py @@ -73,6 +73,7 @@ def __init__( "profile.managed_default_content_settings.images": 2, } self.options = webdriver.ChromeOptions() + self.server = webdriver.ChromeService(chromedriver_dir) self.options.add_argument( 'user-agent="Mozilla/5.0 ' "(Macintosh; Intel Mac OS X 10_14_6) " @@ -87,7 +88,7 @@ def __init__( if chromedriver_dir is None: self.web = webdriver.Chrome(options=self.options) else: - self.web = webdriver.Chrome(chromedriver_dir, options=self.options) + self.web = webdriver.Chrome(service=self.server, options=self.options) self.wait = WebDriverWait(self.web, 10) self.web.get("http://zarbi.chem.yale.edu/ligpargen/") time.sleep(1)