如何将鼠标悬停在FireFox的新WATIR元素上?

如何将鼠标悬停在FireFox的新WATIR元素上?,firefox,watir,watir-webdriver,page-object-gem,Firefox,Watir,Watir Webdriver,Page Object Gem,无法将鼠标悬停在新Watir 6.1.0的FireFox中的元素上悬停方法不起作用。我有: 瓦蒂尔6.1.0 火狐50.1.0 新方法move\u to也不想起作用 我使用下一种方法: def hover_my_account self.spnMyAccount_element.when_present.hover end 其中spnMyAccount描述为: span(:spnMyAccount, xpath: "//span[text()='MY ACCOUNT']

无法将鼠标悬停在新Watir 6.1.0的FireFox中的元素上<代码>悬停方法不起作用。我有:

  • 瓦蒂尔6.1.0
  • 火狐50.1.0
新方法
move\u to
也不想起作用

我使用下一种方法:

  def hover_my_account
    self.spnMyAccount_element.when_present.hover
  end
其中
spnMyAccount
描述为:

  span(:spnMyAccount, xpath: "//span[text()='MY ACCOUNT']")
并获取下一个错误:

Selenium::WebDriver::Error::UnknownCommandError: POST /session/1d9f3178-8059-4b3b-98fa-09d09f38bfa5/moveto did not match a known command
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'VM_WIN10_1', ip: '192.168.13.131', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_101'
Driver info: org.openqa.selenium.firefox.FirefoxDriver

会发生什么?你有错误吗?你用的是什么版本的geckodriver?我用的是0.13.0 geckodriver。在Chrome 55中,它可以工作。会发生什么?你有错误吗?你用的是什么版本的geckodriver?我用的是0.13.0 geckodriver。在Chrome 55中,它可以工作。