【发布时间】:2014-09-15 08:50:21
【问题描述】:
我尝试构建一些 casperjs 测试。到目前为止一切顺利,但有一件事我失败了:
为滑动事件构建测试。
我需要这样的东西:
casper.mouse.down("#myelement"); // press and hold mousebutton
casper.mouse.move_x(200); // Move mouse 200 to the right
casper.mouse.up(); // Release mousebutton
但在 casper-docs 中没有 move_x 这样的函数。
有人有想法吗?
【问题讨论】:
-
它是如何失败的?你有我们可以试用的示例页面吗?
-
感谢您的回答。我更新了我的问题。是的,功能“move_x”是我正在寻找的。或者另一种方法来做到这一点
-
你找到答案了吗?即使您不这样做,也请提供否定答案。
-
其实:我不可能。
标签: javascript casperjs