Skip to content

Commit

Permalink
version bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ambimanus committed Jun 5, 2022
1 parent bcfb47d commit f04d6b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions pshtml2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType
from webdriver_manager.core.utils import ChromeType


def send_devtools(driver, cmd, params={}):
Expand All @@ -34,8 +34,7 @@ def setup_driver(path, chrome_binary=None):
chrome_binary_path = os.path.dirname(chrome_binary)
os.environ['PATH'] = ':'.join((chrome_binary_path, os.environ['PATH']))
driver_options.binary_location = chrome_binary
driver_manager = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM,
print_first_line=False)
driver_manager = ChromeDriverManager(chrome_type=ChromeType.CHROMIUM)
driver_service = Service(driver_manager.install())
driver = webdriver.Chrome(service=driver_service, options=driver_options)
# Set script timeout to 5mins
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# selenium==3.141.0
selenium
PyPDF2
webdriver-manager
selenium==4.2.0
PyPDF2==2.0.0
webdriver-manager==3.7.0

0 comments on commit f04d6b4

Please sign in to comment.