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:ininitialize' 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:increate_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:incall' 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:inexecute' 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:indouble_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:ineach' 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'