Skip to content

Fix the problem with adding of plugin into firefox profile. We tried …#1037

Closed
BlackSmith wants to merge 1 commit intoSeleniumHQ:masterfrom
BlackSmith:bug_add_extension
Closed

Fix the problem with adding of plugin into firefox profile. We tried …#1037
BlackSmith wants to merge 1 commit intoSeleniumHQ:masterfrom
BlackSmith:bug_add_extension

Conversation

@BlackSmith
Copy link
Copy Markdown

The fix solves the problem with adding of plugin into firefox profile. We tried create a folder, which was already created, because we create the folder during creating of file (if it's missing) and then we tried to create folder itself.

Error in my case:
OSError: [Errno 17] File exists: '/tmp/tmpu0hQBg.firebug-2.0.12.xpi/content/firebug/net/

@barancev barancev added C-py Python Bindings D-firefox labels Sep 19, 2015
@lukeis
Copy link
Copy Markdown
Member

lukeis commented Sep 28, 2015

there's already guards in place if the directory doesn't exist, not sure how you're getting this issue... can you show me some example code + the xpi that caused the error? The following ran successfully for me.

>>> from selenium import webdriver as w
>>> fp = w.FirefoxProfile()
>>> fp.add_extension("/Users/linman/Downloads/firebug-2.0.12-fx.xpi")
>>> d = w.Firefox(firefox_profile=fp)

@BlackSmith
Copy link
Copy Markdown
Author

Sorry, I can't reproduce again. Now it looks like good. Maybe, the problem was solved in the some python packages update. :o(

@lukeis
Copy link
Copy Markdown
Member

lukeis commented Sep 29, 2015

Ok, going to close this for now then.

@lukeis lukeis closed this Sep 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-py Python Bindings D-firefox

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants