youtube_uploader_selenium icon indicating copy to clipboard operation
youtube_uploader_selenium copied to clipboard

got an unexpected keyword argument 'firefox_profile'

Open schnaps1981 opened this issue 11 months ago • 2 comments

TypeError: WebDriver.init() got an unexpected keyword argument 'firefox_profile'

schnaps1981 avatar Jul 12 '23 21:07 schnaps1981

Ran into similar. Updated my requirements.txt with...

selenium_firefox==2.0.8 selenium==4.0.0

Then...

pip install -r requirements.txt

(Firefox 117, Win 10, WebDriver)

So, got further, but currently hitting YouTube sign-in issue. Am searching through other open/closed issues to figure out how to progress to the next blocker LOL...

aaronse avatar Sep 11 '23 22:09 aaronse

Found a solution, had to manually go to selenium_firefox/firefox.py, search for profile, and came upon this:

profile = webdriver.FirefoxProfile()

Just added the location of my profile between the braces, like this:

profile = webdriver.FirefoxProfile("C:\\Users\\YourUsername\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\YourProfile")

FujiwaraChoki avatar Jan 13 '24 20:01 FujiwaraChoki

include your profile path in the startup command:

--profile 'C:/users/'username'/appdata/roaming/mozilla/firefox/profiles/xxxx.default-release'

steve3j avatar Feb 02 '24 22:02 steve3j