Right Click with Nightwatch.js ?

  • 2 Replies
  • 1733 Views
*

Karen

  • *
  • 17
Right Click with Nightwatch.js ?
« on: May 01, 2016, 18:27:07 pm »
I wrote a few tests for my website using Nightwatch.js. I have searched and can't seem to find how to issue a right click with mouse.

I checked the API Reference page and all.

Is this functionally supported with nightwatch ?

*

Oren

  • **
  • 59
Re: Right Click with Nightwatch.js ?
« Reply #1 on: May 02, 2016, 19:43:52 pm »
Code
"Right Click" : function (browser) {
  browser
   .moveToElement('#element')
   .mouseButtonClick('right')
   .end();
}

*

Karen

  • *
  • 17
Re: Right Click with Nightwatch.js ?
« Reply #2 on: May 04, 2016, 20:24:57 pm »
thanks

 

Sitemap 1 2 3 4 5 6 7 8