Open chao-cc opened 2 years ago
managed to solve? same problem here
Same issue, was anyone able to find a fix?
Whatsup,
Error comes up when instantiating selenium's Firefox webdriver -
self.driver = webdriver.Firefox(firefox_profile=profile, firefox_options=options) TypeError: WebDriver.init() got an unexpected keyword argument 'firefox_profile'
Selenium deprecated 'firefox_options` with Selenium 3.8.0. See below: https://github.com/SeleniumHQ/selenium/blob/4c0404e9580050c488f714885adea712a6f2da0d/py/CHANGES#L368
Selenium 3.8.0
set_headless
set_headless
options
parameteroptions
. firefox_options
,
chrome_options
, and ie_options
are now deprecatedJust use Selenium 3.7.0. Worked for me.
Tokland is not working on youtube-upload anymore. However, @kootsoop is. If you prepare a PR, we'll gladly merge it. Any help, gratefully received.
Describe the bug TypeError: init() got an unexpected keyword argument 'firefox_options'
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context Traceback (most recent call last): File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/upload.py", line 26, in
main(video_path, metadata_path, thumbnail_path)
File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/upload.py", line 7, in main
uploader = YouTubeUploader(video_path, metadata_path, thumbnail_path)
File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/youtube_uploader_selenium/init.py", line 33, in init
self.browser = Firefox(current_working_dir, current_working_dir)
File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/venv/lib/python3.9/site-packages/selenium_firefox/firefox.py", line 86, in init
self.driver = webdriver.Firefox(firefox_profile=profile, firefox_options=options)
TypeError: init() got an unexpected keyword argument 'firefox_options'