Try to make the mouse cursor visible in a selenium test case

我们两清 提交于 2019-12-10 15:01:20

问题


I work with Selenium Webdriver in Java on the chromedriver and I try to display the cursor permanently while a test case is performed. I have tried the robot and the action class but without any succes. for Example i tried this:

Actions builder = new Actions(driver);
      Action action = builder.moveToElement(logo).click().build();
      action.perform();       

In this case i can see the cursor but its not moving. Any help would be very appriciated.


回答1:


I've found a workaround for my problem. I use the autoit framework with the ff.au3 Library. For the library you need to install the mozrepl addon (Mozrepl wont be supported in FF Version 55 but it should be possible to find a solution for chrome browser and IE too). With that i can easily control the browser and show all the mouse moves. Furthermore it is no problem to integrate this in Selenium. Following some links to get you started.

Mozrepl

Thorsten Willert

autoit

EDIT: autoit just works on windows...



来源:https://stackoverflow.com/questions/46231617/try-to-make-the-mouse-cursor-visible-in-a-selenium-test-case

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!