Skip to content

Python Selenium doesn't load firebug extension (firefox) #734

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

Closed
fike opened this issue Jul 3, 2015 · 0 comments
Closed

Python Selenium doesn't load firebug extension (firefox) #734

fike opened this issue Jul 3, 2015 · 0 comments
Labels
C-py Python Bindings D-firefox

Comments

@fike
Copy link

fike commented Jul 3, 2015

Hi,

The Python-Selenium doesn't load firebug extension of Firefox, which happen in the Firebug versions superior the 2.0.7. This doesn't happen in the Firebug 1.XX.XX versions, I think that the problem is file format changed.

Firebug 1.XX.XX version

fike@kamino:~/d/annabe/annabe$ file firebug-1.13.0a10.xpi 
firebug-1.13.0a10.xpi: Zip archive data, at least v1.0 to extract

Firebug 2.XX.XX version

fike@kamino:~/d/annabe/annabe$ file firebug-2.0.11-fx.xpi 
firebug-2.0.11-fx.xpi: Zip archive data, at least v2.0 to extract

Below a example code, it's same of Python-Selenium FAQ.

Code example:

Python 2.7.10 (default, Jul  1 2015, 10:54:53) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> 
>>> fp = webdriver.FirefoxProfile()
>>> 
>>> fp.add_extension(extension='firebug-2.0.11-fx.xpi')
Traceback (most recent call last):
  File "/usr/local/bin/firefox_navigate.py", line 19, in <module>
    fp.add_extension(extension='firebug-2.0.11-fx.xpi');
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 93, in add_extension
    self._install_extension(extension)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 264, in _install_extension
    with open(os.path.join(tmpdir, name), 'wb') as f:
IOError: [Errno 21] Is a directory: '/tmp/tmpjH9lmE.firebug-2.0.11-fx.xpi/content/firebug/'

Thanks,
Fernando Ike

@ddavison ddavison added C-py Python Bindings D-firefox labels Jul 7, 2015
@lukeis lukeis closed this as completed in 8bf1c71 Jul 9, 2015
@lock lock bot locked and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-py Python Bindings D-firefox
Projects
None yet
Development

No branches or pull requests

2 participants