Issue
I'm trying to download Chromedriver into the current directory. I've tried chromedriver-auto installer and get_chrome_driver library. But, I can't download it into the specific directory.
This is my code.
from get_chrome_driver import GetChromeDriver
get_driver = GetChromeDriver()
get_driver.auto_download(extract=True, output_path="")
and I got this
PS D:\Project\Python\Automation\Socinet> & C:/Python37/python.exe d:/Project/Python/Automation/Socinet/chromedriver.py
Traceback (most recent call last):
File "d:/Project/Python/Automation/Socinet/chromedriver.py", line 4, in <module>
get_driver.auto_download(extract=True, output_path="")
TypeError: auto_download() got an unexpected keyword argument 'output_path'
PS D:\Project\Python\Automation\Socinet>
What should I do?
Solution
First run:
pip install get-chrome-driver --upgrade
then give dot if you want to download to currrent directory
get_driver.auto_download(extract=True, output_path=".")
Answered By - PDHide
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.