Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL is sometimes not captured #17

Open
lhorie opened this issue Mar 17, 2014 · 1 comment
Open

URL is sometimes not captured #17

lhorie opened this issue Mar 17, 2014 · 1 comment

Comments

@lhorie
Copy link

lhorie commented Mar 17, 2014

  • Click resurrectio icon in Chrome
  • Type a URL, for example a document in docs.google.com
  • Click Go
  • Press Return to dismiss the alert
  • Click stop recording
  • click export CasperJS
  • Close the tab with the export code
  • Repeat the steps above quickly without refreshing the page or pausing

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants