Skip to content Skip to sidebar Skip to footer

Casperjs/phantomjs Chokes On Loading A Page

I'm running the following script with phantomjs: var casper = require('casper').create(); var url = 'https://itunesconnect.apple.com/itc/static/login?view=1&path=%2FWebObjects%

Solution 1:

Too late to solve the problem but maybe useful for future reference if somebody finds the question searching for a problem with startsWith in PhantomJS (as I did): startsWith method was added on the ECMAScript 6 specification, which is not supported by PhantomJS.

A good polyfill for this is mathiasbynens/String.prototype.startsWith

Post a Comment for "Casperjs/phantomjs Chokes On Loading A Page"