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

Firefox webdriver permision denied error when get links with selenium 3.0.2 #20

Open
0xIslamTaha opened this issue Feb 2, 2017 · 0 comments

Comments

@0xIslamTaha
Copy link

0xIslamTaha commented Feb 2, 2017

Description:

I got the following traceback error, when I tried to execute my testing script after updated my selenium to 3.0.2.

Traceback (most recent call last):
  File "try.py", line 20, in <module>
    browser.get('http://google.com')
  File "/usr/local/lib/python2.7/dist-packages/pytractor/mixins.py", line 205, in get
    """.format(DEFER_LABEL, full_url)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 466, in execute_script
    'args': converted_args})['value']
  File "/usr/local/lib/python2.7/dist-packages/pytractor/mixins.py", line 104, in execute
    params=params)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 237, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Error: Permission denied to access property "name"

Here is my sample code:

from pyvirtualdisplay import Display
from pytractor import webdrive

display = Display(visible=0, size=(800, 600))
display.start()
browser = webdriver.Firefox()
browser.ignore_synchronization = True
browser.get('http://yahoo.com')
print browser.title
browser.get('http://google.com')
print browser.title
browser.quit()
display.stop()

OS :

Linux ubuntu 16.04
Firefox 45, 46, 47.0.1, 51.0.1

Work arround :

You have to stuck with selenium 2.53.6 to be able to use firefox and pytractor tell this issue be fixed.

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

1 participant