ebrehault / resurrectio

CasperJS test recorder Chrome extension
GNU General Public License v2.0
721 stars 106 forks source link

not capture drag and drop event #18

Closed feifeiiiiiiiiiii closed 8 years ago

feifeiiiiiiiiiii commented 10 years ago

test http://jsbin.com/ifuma#noedit

result:


//==============================================================================
// Casper generated Wed Apr 02 2014 15:19:54 GMT+0800 (CST)
//==============================================================================

var x = require('casper').selectXPath;
casper.options.viewportSize = {width: 1366, height: 650};
casper.test.begin('Resurrectio test', function(test) {
   casper.start('http://jsbin.com/ifuma#noedit');

   casper.run(function() {test.done();});
});

suport drag and drop event ?? Thanks

timelf123 commented 10 years ago

From http://makina-corpus.com/blog/metier/2014/record-casperjs-tests-using-resurrectio

"When testing drag & drop behaviours, basic selectors might be unsufficient, in which case we must use the Export CasperJS test with (x, y) coords, so we get a CasperJS test using the actual mouse positions."

feifeiiiiiiiiiii commented 10 years ago

ok, thanks