拒绝访问属性"handleEvent"的权限 [英] Permission denied to access property "handleEvent"

查看:145
本文介绍了拒绝访问属性"handleEvent"的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Selenium 2.45.0网格在多个浏览器中测试一个Web应用程序.

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

在某一时刻(我想是将Bugsnag添加到应用程序中),某些find_element函数在Firefox中开始失败(在Safari中仍然可以使用),并显示拒绝访问属性handleEvent的权限错误."

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.

似乎有一种解决方法:

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

但这很尴尬.

其他人是否也遇到过同样的问题并找到了更合适的解决方案?

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

推荐答案

此问题已通过在Bugsnag v2.4.8 .可以说,硒不应该在页内事件中添加本机处理程序,但是好吧:).

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 :).

这篇关于拒绝访问属性"handleEvent"的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆