Firefox 23中的QUnit测试:;类型错误:document.setUserData不是函数;
QUnit test in Firefox 23: "TypeError: document.setUserData is not a function"
我的QUnit测试套件(此处为源代码)在Firefox 23及更高版本中失败,错误为TypeError: document.setUserData is not a function
。有关详细信息,请参阅此屏幕截图。
奇怪的是,每次似乎都有不同的测试失败,但每次页面加载只有一个测试失败。我看到Firefox删除了setUserData,但我在代码中没有使用该函数,也没有看到QUnit代码中使用该函数。这里会发生什么?
这似乎是FF和Selenium:的已知问题
显然,Node.setUserData不再受支持。备选方案是使用WeakMap
https://developer.mozilla.org/en-US/docs/Web/API/Node.setUserData更多具体来说,executeScript()失败,因为firefox驱动程序将脚本注入目标页面,然后使用document.setUserData与该脚本通信。
https://code.google.com/p/selenium/issues/detail?id=5710
相关文章:
- 正在寻找比$(document).ready慢的$(window).load的替代方案
- document.open/document.write没有正确地清除chrome中的文档——这是chrome的错误吗
- 如何用更合适的内容替换document.write
- document.styleSheets不返回任何内容
- jQuery document.ready not working
- $(document).height()在刷新时随机化值(Safari 5.1.10)
- reactjs this.refs vs document.getElementById
- 如何通过adf中的document.getElementById获取inputText字段值
- window.opener.document在ie中不起作用
- contentWindow.document.body is null
- document.applet.method在Mounatin Lion上抛出safari 6+JDK7异常
- document.getElementById(“st”).click();不起作用
- $(document).height和$(window).heaght都返回相同的值-使用的是正确的doctype
- jQuery document.ready停止代码
- document.getElementById并使用id名称
- 使用jQuery 1.8.1准备好多个$(document).是否有任何开销
- document.getElementById在js中不起作用
- document.getElementById.style.backgroundImage not working
- 停止对document.ready函数的重定向/刷新
- Firefox 23中的QUnit测试:;类型错误:document.setUserData不是函数;