ebrehault / resurrectio

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

URL is sometimes not captured #17

Open lhorie opened 10 years ago

lhorie commented 10 years ago

Sometimes (about 10% of the time) this produces mangled code because the .start() call is missing. This is easier to reproduce with cache cleared, on sites with a heavy amount of javascript running, after following the steps above more than once in a row.

See snippet below for an example of a mangled export

//==============================================================================
// Casper generated Mon Mar 17 2014 16:27:11 GMT-0400 (Eastern Daylight Time)
//==============================================================================

var x = require('casper').selectXPath;

   casper.run(function() {test.done();});
});
brentjohnson commented 9 years ago

This seems to occur if you dismiss the alert before the inital page has finished loading.