Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Permission denied when clicking on a Facebook login with property HTMLDocument.compatMode' when calling method: [wdIMouse::move] on Firefox 8 #3018

Closed
lukeis opened this issue Mar 3, 2016 · 5 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3018

What steps will reproduce the problem?
using the script below when I ran against Firefox 8

from selenium import webdriver
driver = webdriver.Firefox()


driver.get("https://www.tippr.com/")
mainWindow = driver.current_window_handle
facebook = driver.find_element_by_css_selector("a.fb_button")
facebook.click()
handles = driver.window_handles
print handles
for window in handles:
    if window != mainWindow:
        driver.switch_to_window(window)
facebookWindow = driver.current_window_handle
cancelButton = driver.find_element_by_name("cancel")
cancelButton.click()


I get 

 python test.py 
[u'{ff097ea7-7c71-6940-b63c-2d7ff9a84a87}', u'{33cb452c-8cf6-3a49-b281-332bc4606a52}']
Traceback (most recent call last):
  File "test.py", line 16, in <module>
    cancelButton.click()
  File "/Users/davidburns/.virtualenvs/testing/lib/python2.6/site-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/webelement.py",
line 45, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/Users/davidburns/.virtualenvs/testing/lib/python2.6/site-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/webelement.py",
line 194, in _execute
    return self._parent.execute(command, params)
  File "/Users/davidburns/.virtualenvs/testing/lib/python2.6/site-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/webdriver.py",
line 153, in execute
    self.error_handler.check_response(response)
  File "/Users/davidburns/.virtualenvs/testing/lib/python2.6/site-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/errorhandler.py",
line 147, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u"'Error: Permission denied
for <https://www.facebook.com> to get property HTMLDocument.compatMode' when calling
method: [wdIMouse::move]" 

What is the expected output? What do you see instead?

This should have clicked fine


Please use labels and text to provide additional information.

Reported by david.burns@theautomatedtester.co.uk on 2011-12-07 15:27:07

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I am getting error when trying to click in FF8. Found the element but not clicking on
it. 

Reported by errajasankarchem on 2011-12-29 08:56:43

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Try this Solution http://aboutselenium.blogspot.in/2012/02/handling-permission-denied-error-for.html

Reported by thavvarao on 2012-02-23 16:54:41

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

45689 [pool-2-thread-1] WARN  com.paddypower.automation  - Error: org.openqa.selenium.WebDriverException:
Permission denied for <https://yoursite.com> to get property HTMLDocument.compatMode
Build info: version: '2.19.0', revision: '15849', time: '2012-02-08 16:10:57'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.7.0_02'
Driver info: driver.version: unknown
Command duration or timeout: 313 milliseconds
Build info: version: '2.19.0', revision: '15848', time: '2012-02-08 16:25:03'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.7.0'
Driver info: driver.version: RemoteWebDriver

Stack trace of error. Above solution is not suitable for our tests

Reported by foley85 on 2012-02-24 11:23:11

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:23

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant