Friday, 15 April 2011

angularjs - Display cursor movement while running e2e test cases using protractor -


I'm completely new to testing e2e using launcher. My question is, when i Display / Show cursor movement while running I searched in Google, I did not get any results. Help me

I have done a module injection which tracks the mouse events and makes the event temporary Fixed point on coordinates:

In the file

  at work: () {// track mouse movements var trackMouse = function () {angular.module ('track mouse', []). Run (function ($ document) {function addDot (ev) {var color = 'black', size = 6; switch (ev.type) {case 'click': color = 'red' 'blue' '; break; case 'Mausaffe': color = 'green'; break;} var dotEl = $ ('
& lt; / div & gt;'). CSS ({status: 'fixed', height: size + 'Px', width: size + 'px', 'background color': color, top: e v.clientY, left: ev.clientX, 'z-index': 9999, // Make sure that this dot is used for other elements 'Pointer-event''s mouse event will not interfere: 'none'}) .appendTo ('tan'); SetTimeout (function () {dotEl.remove ();}, 1000)} $ document.on ({c Lick: addDot, dblclick: addDot, mousemove: addDot});}); }; Browser. Edoc Module ('TrackMouse', Trackmouse); },

No comments:

Post a Comment