python selenium:move_to_element()给出异常

时间:2018-10-09 12:49:36

标签: python selenium remote-server

from selenium.webdriver.common.action_chains import ActionChains   

actions = ActionChains(self.browser)    
actions.move_to_element(path).click().perform()  

-====================
硒版本:3.14.0
python:2.7
chrome浏览器:69.0.3497.100(正式版本)(64位)
-=====================

在本地运行上述代码(安装了硒)可以正常工作,没有任何错误。

但是当使用远程硒服务器运行以上代码时,获取异常为:

  

lib / python2.7 / site-    包/selenium/webdriver/common/action_chains.py”,第219行,在
  self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))     AttributeError:“浏览器”对象没有属性“执行”

尝试使用Firefox和chrome驱动程序,但没有用。

0 个答案:

没有答案