Permission denied to access property “handleEvent”

孤人 提交于 2019-12-13 00:42:33

问题


I'm testing a web app in several browsers with the Selenium 2.45.0 grid.

At one point (I suppose when Bugsnag was added to the app) some find_element functions started to fail in Firefox (still work in Safari) with the 'Permission denied to access property handleEvent error.

It looks like there is a workaround for that:

adding 
$driver -> get_active_element();
before calling
$driver -> find_element...

But this is awkward.

Did anyone else face the same problem and find a more adequate solution?


回答1:


This is fixed by rescuing from this exception in Bugsnag v2.4.8. Arguably selenium shouldn't be adding native handlers to in-page events, but oh well :).




回答2:


So my suggestion is that error occurs coz of not really good compatipability firefox 37 and selenium server 2.45 I would recommend you trying to install firefox 36 or wait till selenium web driver get update. Because in my case of using selenium 2.45 and firefox 37 it does not work at all - browser just opening and hanging till timeout.



来源:https://stackoverflow.com/questions/29918511/permission-denied-to-access-property-handleevent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!