TestProject Forum
Powered by leading experts in the test automation community

Move mouse to random point using with protractor

Is it possible to move to a random point relative to another element with selenium/protractor ?

Around the lines of:

it('randomPoint', function() {
    var action = element(by.id('container'));
    browser.actions()
      .mouseMove(plot0, {x: 80, y: 45})
      .mouseDown()
      .mouseMove({x: 0, y: 25})
      .perform();
  });