move mouse to random point using with protractor

  • 1 Replies
  • 2531 Views
move mouse to random point using with protractor
« on: July 20, 2016, 20:03:34 pm »
Is it possible to move to a random point relative to another element with selenium/protractor ?

*

Oren

  • **
  • 59
Re: move mouse to random point using with protractor
« Reply #1 on: July 24, 2016, 20:56:49 pm »
Around the lines of:

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

 

Sitemap 1 2 3 4 5 6 7 8