Skip to content Skip to sidebar Skip to footer

Events After Clickmousebutton

In one of my tests I have the mouse moved to a specific location and then clickMouseButton() is called. This action is to change the data that is displayed (paging the data.) Howev

Solution 1:

moveMouseTo doesn’t accept a Promise as its first argument, so that moveMouseTo call is wrong and won’t do what you want. The JE.Buttons.Scrolling() call in your example code also occurs immediately (during command chain construction), it doesn’t occur only once moveMouseTo is actually performed.

To retrieve and use an element with your abstraction function, pass the function to then and then use the element:

returnRemote
  .then(JE.Buttons.Scrolling)
  .then(function (element) {
    returnRemote.moveMouseTo(element, 5, 100);
  })
  // …remainder of test…

Post a Comment for "Events After Clickmousebutton"