testing - Running an arbitrary command/program on selenium grid node -


Is it possible to run an arbitrary OS program on the Selenium node before the trial runs?

Why I need such a strange thing:

In a test of the web application I need to simulate the mouseover for 1 second, but the point is - if the browser window But if there is a mouse pointer, the Selenium webdriver is not long, keep mouseover events for a long time, it is being interrupted after several milliseconds, and after that the real mouse pointer starts releasing the mouseover event.

So what I want to try is to run a trivial program that takes the mouse cursor in the screen corner

UPD : to a particular driver Before launch, an apps app has been created to move the cursor to the corner:

If you are using JUnit4, you can do something like

  java .lang.Runtime.getRuntime () Executive ("One-Command") .;   

In a method that runs @BeforeClass . In June 3 you will have to do this in setUp () , so before each test. There are different mechanisms for obtaining the same thing in other frameworks.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -