node.jsweb-scrapingphantomjscasperjs

Logging to Amazon Developer web page using casperjs/phantomjs


I have a problem trying to log in to amazon developer web page with CasperJS - email and pass are successfully entered, but on a 'sign in' button click, I receive a message to enter an email that is valid (and my email is valid - I successfully log in manually). Tried to log in to Facebook and it worked with pretty much the same code. I used code from this website : http://code-epicenter.com/how-to-login-to-amazon-using-casperjs-working-example/

Thanks!


Solution

  • U need 2 use --cookies-file option, b/c of a bug, and try twice.

    ./casperjs --cookies-file=./MyFile amazon.js >/dev/stdout
    

    Here's my another answer