使用" selenium-server-standalone-3.0.0-beta2"时动作类错误

时间:2016-08-31 11:09:49

标签: java selenium

Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: POST /session/73b57e0a-42de-4b91-9864-6edd30d7d2c1/moveto did not match a known command (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 8 milliseconds

当我在firefox浏览器上使用selenium-server-standalone-3.0.0-beta2 selenium版本时,会显示以上错误:

以下是示例代码:

act.clickAndHold(dragElement).moveToElement(dropElement).release().perform();

1 个答案:

答案 0 :(得分:0)

I would suggest you don't use beta version, there may be many bugs.

You need to downgrade your selenium version and download last stable version of selenium 2 and work with Actions class until final version of selenium 3 would not be released.