double_click方法在firefox中不起作用

时间:2014-10-03 20:26:27

标签: watir watir-webdriver

double_click方法双击不能与firefox浏览器一起使用。因为它显示以下错误消息。相同的方法适用于Chrome浏览器。

错误消息:

  

Selenium :: WebDriver :: Error :: InvalidElementStateError:无法执行本机交互:无法获取元素的节点 - 无法进行交互。           来自[remote server] file:/// C:/Users/Niresh/AppData/Local/Temp/webdriver-profile20141004-2520-nez9f5/extensions/fxdriver@googlecode.com/components/driver-component.j   s:9918:3:在generateErrorForNativeEvents' from [remote server] file:///C:/Users/Niresh/AppData/Local/Temp/webdriver-profile20141004-2520-nez9f5/extensions/fxdriver@googlecode.com/components/driver-component.j s:10037:7:in FirefoxDriver.prototype.mouseDoubleClick'中           来自[remote server] file:/// C:/Users/Niresh/AppData/Local/Temp/webdriver-profile20141004-2520-nez9f5/extensions/fxdriver@googlecode.com/components/command-processor。   js:11612:16:在DelayedCommand.prototype.executeInternal_/h' from [remote server] file:///C:/Users/Niresh/AppData/Local/Temp/webdriver-profile20141004-2520-nez9f5/extensions/fxdriver@googlecode.com/components/command-processor. js:11617:7:in DelayedCommand.prototype.executeInternal_'中           来自[remote server] file:/// C:/Users/Niresh/AppData/Local/Temp/webdriver-profile20141004-2520-nez9f5/extensions/fxdriver@googlecode.com/components/command-processor。   js:11559:5:在DelayedCommand.prototype.execute/<' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/response.rb:52:in assert_ok'中           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/response.rb:15:in initialize' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/http/common.rb:59:in new'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/http/common.rb:59:in create_response' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/http/default.rb:66:in request'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/http/common.rb:40:in call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/bridge.rb:638:in raw_execute'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/bridge.rb:616:in execute' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/remote/bridge.rb:381:in doubleClick'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/common/mouse.rb:22:in double_click' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/common/action_builder.rb:344:in block in perform'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/common/action_builder.rb:343:in each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.43.0/lib/selenium/webdriver/common/action_builder.rb:343:in perform'           来自C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.11/lib/watir-webdriver/elements/element.rb:150:在`double_click'

0 个答案:

没有答案