【问题标题】:In selenium, how can i track cursor movement on browser with any color?在 selenium 中,如何使用任何颜色跟踪浏览器上的光标移动?
【发布时间】:2015-02-06 18:55:31
【问题描述】:

我在一页上执行许多任务....我想知道我的光标在哪里,那么当我运行脚本时,有什么方法可以让我的光标位置在浏览器上以彩色显示。

谢谢

【问题讨论】:

    标签: selenium-webdriver


    【解决方案1】:

    有几种使用javascript改变光标形状的技术,例如here。您可以使用

    在您的代码 (Java) 中使用它
    ((JavascriptExecutor) driver).executeScript
    

    详情here

    【讨论】:

      猜你喜欢
      • 2017-03-23
      • 1970-01-01
      • 2015-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多