Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

Using ActionSequence to Script Mouse Actions



This example shows how to use ActionSequence to move the mouse around the screen. Full actions available are documented in our Synthetics reference here:

  console.log('switch iframe');
  return $browser.switchTo().frame('iframeResult');
  console.log('find element');
  return $browser.findElement($driver.By.css('body > a:nth-child(2)')).then(function(element){
    return $browser.actions().mouseMove(element).perform();