Skip to content

Commit

Permalink
Merge pull request #69 from blue-shoes/v1.2.1_dev
Browse files Browse the repository at this point in the history
Upgrade Selenium methods for Chrome and Edge drivers
  • Loading branch information
blue-shoes authored Nov 26, 2023
2 parents 08db617 + 35ed14a commit 51cd484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrape/scrape_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def setupDriver(self):
prefs["profile.default_content_settings.popups"]=0
prefs["download.default_directory"]=self.download_dir
options.add_experimental_option("prefs", prefs)
service = ChromeService(ChromeDriverManager().install())
service = ChromeService()
service.creationflags = CREATE_NO_WINDOW
self.driver = webdriver.Chrome(service=service, options=options)
self.driver.set_window_size(1920, 1080)
Expand All @@ -130,7 +130,7 @@ def setupDriver(self):
options.add_experimental_option('prefs', {
"download.default_directory": self.download_dir,
"download.prompt_for_download": False})
service = EdgeService(EdgeChromiumDriverManager().install())
service = EdgeService()
service.creationflags = CREATE_NO_WINDOW
self.driver = webdriver.Edge(service=service, options=options)
elif 'FirefoxURL' in self.browser:
Expand Down

0 comments on commit 51cd484

Please sign in to comment.