Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got an unexpected keyword argument 'firefox_profile' #86

Open
schnaps1981 opened this issue Jul 12, 2023 · 4 comments
Open

got an unexpected keyword argument 'firefox_profile' #86

schnaps1981 opened this issue Jul 12, 2023 · 4 comments

Comments

@schnaps1981
Copy link

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

@aaronse
Copy link

aaronse commented Sep 11, 2023

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...

@FujiwaraChoki
Copy link

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")

@steve3j
Copy link

steve3j commented Feb 2, 2024

include your profile path in the startup command:

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

@lijianfeigeek
Copy link

pip uninstall selenium
pip install selenium==4.9.0

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

No branches or pull requests

5 participants