using node.js can i submit the form and it should take me the account summary page

103 views
Skip to first unread message

sanjib bisoyi

unread,
May 21, 2014, 11:40:04 PM5/21/14
to nod...@googlegroups.com
Hi,

My requirement  is i am having bank account like bank of america or chase using node.js i want enter my user id and password and sign in button it should take me to account summary page. is it possible using node.js if yes can some one please give me the sample code or working code . its very urgent.



Thanks,
Sanjib

Ryan Schmidt

unread,
May 22, 2014, 2:44:01 AM5/22/14
to nod...@googlegroups.com
On May 21, 2014, at 22:40, sanjib bisoyi wrote:

> My requirement is i am having bank account like bank of america or chase using node.js i want enter my user id and password and sign in button it should take me to account summary page. is it possible using node.js if yes can some one please give me the sample code or working code . its very urgent.

Node can send http requests, including submitting forms.

When you say "take me to account summary page", if you mean can node return to your script the html code of the account summary page after you've told node to send an http request that logs you in, then sure, of course. If you mean can node show your bank's account summary page in a web browser, then that's a totally different idea that's more complicated.

You should probably try to break down your idea into a set of simple steps, then you can research how to do each step in node. When you reach a problem, you can show us the code you already have, and maybe someone can guide you on how to do the next step.



sanjib bisoyi

unread,
May 25, 2014, 12:43:53 AM5/25/14
to nod...@googlegroups.com
i dont want see the account summary page in web browser ,i want to see the response url for account summary page.

Ryan Schmidt

unread,
May 25, 2014, 8:09:17 AM5/25/14
to nod...@googlegroups.com
So you're saying that once you've submitted your username and password to the server, it will respond with an HTTP 3xx redirect, and you'd like to know what that URL is? Sure, you should be able to get node to do that. I'd start with the http client object:

http://nodejs.org/api/http.html

There may also be npm modules to help you do this more easily.

sanjib bisoyi

unread,
May 27, 2014, 2:40:49 PM5/27/14
to nod...@googlegroups.com
thanks,i installed zombie still its not working, if u can provide me the sample code it will great help, below is my code

var Browser = require("zombie");
var assert = require("assert");

//options
var options = {
headers: {
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0'
},
debug: true,
runScripts: true,
maxWait: '20s'
};

// Load the page from localhost
browser = new Browser();

browser.on("error", function(error) {
    console.log("Logging error-", error);
});

  
 browser.fill("email","email need to enter");
 browser.fill("password","password need to enter");
 browser.pressButton("input[name*=accountSignIn]", options, function() {
console.log(browser.html());

});
 
});

Aria Stewart

unread,
May 28, 2014, 10:36:58 AM5/28/14
to nod...@googlegroups.com

On May 27, 02014, at 14:40, sanjib bisoyi <sanjib...@gmail.com> wrote:

> thanks,i installed zombie still its not working, if u can provide me the sample code it will great help, below is my code

What’s “not working” look like for you?

Actual error messages or problem descriptions will aid in getting good help!

Aria

signature.asc
Reply all
Reply to author
Forward
Message has been deleted
0 new messages