Skip to content

Use chromedriver manager in order for less setup - #27

Merged
SeanDaBlack merged 5 commits into
SeanDaBlack:mainfrom
BigweldIndustries:patch-1
Dec 12, 2021
Merged

Use chromedriver manager in order for less setup#27
SeanDaBlack merged 5 commits into
SeanDaBlack:mainfrom
BigweldIndustries:patch-1

Conversation

@BigweldIndustries

Copy link
Copy Markdown
Contributor

This uses a library called webdriver-manager which allows the installation of a chromedriver depending on your OS and chrome version. It saves it to cache, and will not need to reinstall each time. If there every are pull errors, this really isn't that big of a change so it can be implemented easily.

@BigweldIndustries

Copy link
Copy Markdown
Contributor Author

The reason I created a new pull request for this is that #21, my old pull, is outdated and is behind many commits. I feel a smaller request such as this is more reasonable, and I may implement multiproccessing with futures some other time

@jmrushing jmrushing left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working on my fork also running changes from #26.

Comment thread main.py
from selenium.webdriver.support.ui import Select

from webdriver_manager.chrome import ChromeDriverManager
os.environ['WDM_LOG_LEVEL'] = '0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should by passed through the constructor instead:

ChromeDriverManager(log_level=0)

https://github.com/SergeyPirogov/webdriver_manager#wdm_log_level

@SeanDaBlack
SeanDaBlack merged commit e3f1897 into SeanDaBlack:main Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants