Permission denied to access property “handleEvent”

2019-08-09 23:15发布

问题:

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.