Firefox 13 打破了 Selenium 测试

标签 firefox automated-tests selenium-rc selenium-firefoxdriver

显然我今天早上升级了我的 Firefox 以及其他一些系统更新,现在我的 selenium 测试被破坏了!他们昨天工作得很好,一切都过去了。执行悬停似乎是一个问题。
这是我得到的错误:

Traceback (most recent call last):
File "sel.py", line 201, in testAddContent
hoveredElement.perform()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/action_chains.py", line 44, in perform
action()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/action_chains.py", line 201, in <lambda>
self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 155, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
raise exception_class(message, screen, stacktrace)
InvalidElementStateException: Message: u'Cannot perform native interaction: Could not load native events component.' ; Stacktrace: Method generateErrorForNativeEvents threw an error in file:///tmp/tmpq2yHMn/extensions/fxdriver@googlecode.com/components/driver_component.js 

最佳答案

您需要昨天发布的 Selenium 2.23。

关于Firefox 13 打破了 Selenium 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10916544/

相关文章:

javascript - Chrome 和 Firefox 中不同的 "return null"结果

automated-tests - 如何自动化测试基于浏览器的应用程序?

java - Selenium assertText 用于表中的所有文本?

java - Selenium 并不总是获取正确的动态生成的链接

asp.net - firefox,jQuery ajax 调用触发两次并且从不触发成功或错误函数

Firefox DevTools (XHR) XMLHttpRequest pretty-print

c# - Microsoft.VisualStudio.TestTools.UITesting,版本=14.0.0.0

python - 在参数中传递 Selenium Webdriver。在Python中可以吗?

google-chrome - 得到 "you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer"错误

html - 在 Firefox 中并排处理 css 3d 形状