JavaScript Cannot submit form with CasperJS - in other words cannot login cannot submit form,cannot submit form javascript,cannot submit form

I'm trying to login into Tumblr with CasperJS using methods start, fill and waitForUrl but cannot do this. It seems to me that form wasn't submitted, because timeout in waitForUr expired everytime.

Terminal response:

Code I'm using is this:

/*jslint browser: true, regexp: true */
// global casper, require 

var LOGIN_URL, LOGIN_USERNAME, LOGIN_PASSWORD, casper;

casper = require('casper').create({
    waitTimeout: 20000,
    viewportSize: {
        width: 1024,
        height: 768
    },
    verbose: true,
    logLevel: 'debug',
    userAgent: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'
});

if (!casper.cli.has('username') && !casper.cli.has('password')) {
    casper.echo('Usage: $ casperjs sfdclogin.casper.js --username=USERNAME --password=PASSWORD').exit(-1);
}

LOGIN_URL = 'https://tumblr.com/login';

LOGIN_USERNAME = casper.cli.get('username');
LOGIN_PASSWORD = casper.cli.get('password');

phantom.cookiesEnabled = true;

casper
    .start(LOGIN_URL, function () {
        // 'use strict';

        this.log('Logging in', 'debug');
        /*
        this.fillSelectors('#signup_form_form', {
            '#signup_email': LOGIN_USERNAME,
            '#signup_password': LOGIN_PASSWORD
        }, true);
        */

        this.fill('#signup_form_form', {
            '#user[email]': LOGIN_USERNAME,
            '#user[password]': LOGIN_PASSWORD
        }, true);
    })

    .waitForUrl('http://tumblr.com/dashboard', function () {
        // 'use strict';

        this.echo('We\'re logged in.');
    })

    .run();

Also, I'm using correct username and password with this script.

Answer:1

i'm writing an asp page using vb.net and i need to count the number of characters in my textarea and display the message:"X characters Remaining." that's my asp code: <td valign='top'> ...

i'm writing an asp page using vb.net and i need to count the number of characters in my textarea and display the message:"X characters Remaining." that's my asp code: <td valign='top'> ...

  1. textarea count characters jquery
  2. textarea count characters javascript
  3. textarea count characters
  4. textarea count characters angular
  5. count characters in textarea
  6. html textarea count characters
  7. textarea count remaining characters
  8. textarea javascript count number of characters
  9. bootstrap textarea count characters

I m creating a web tv on a Raspberry Pi Since the RPi will not always be connected to the net, I need to download the file it will have to play before playing them. I can download the file, but when ...

I m creating a web tv on a Raspberry Pi Since the RPi will not always be connected to the net, I need to download the file it will have to play before playing them. I can download the file, but when ...

How to make that the all selected options, not the values, but the actual text, would be displayed somewhere? Html: <h1>Made your PC:</h1> <div> <label>Processeor: </...

How to make that the all selected options, not the values, but the actual text, would be displayed somewhere? Html: <h1>Made your PC:</h1> <div> <label>Processeor: </...

  1. get value drop down list javascript
  2. get value drop down list jquery
  3. get dropdown value
  4. javascript get dropdown value
  5. get value dropdown list
  6. get value from drop down list excel
  7. get value from drop down menu javascript
  8. get value from drop down list php
  9. how to get dropdown value in jquery
  10. get dropdownlist value
  11. get value from drop down excel
  12. get value from drop down list excel vba
  13. how to get dropdown value in php
  14. how to get dropdown value in html
  15. get value drag drop jquery
  16. get value of drop down list c#
  17. get value from drop down list in html
  18. get value from drop down list vba
  19. get value of drop down box javascript
  20. get value of drop down list vb.net

So, I've looked at other questions like this and they haven't really answered the questions. In short: I've worked with HTML, Java, VB, and whatever language MIRC uses(it's been a little under 10 ...

So, I've looked at other questions like this and they haven't really answered the questions. In short: I've worked with HTML, Java, VB, and whatever language MIRC uses(it's been a little under 10 ...

  1. external javascript call in html
  2. external javascript call function
  3. external javascript call
  4. calling external javascript function from html
  5. calling external javascript file from html
  6. calling external javascript function from php
  7. javascript calling external program
  8. calling external javascript file