I have url, userName, pasword of a site.
This site doesn't use form element.
So the structure is like this.
Both username field has .user_name class while password field has #passwd id.
Moreover login button has #login id.
I know I can use jQuery with casperjs and able to inject it in the page.
I tried the following code inside
casper.thenEvaluate(function() {
$(fe.u).val(user.uname);
});
but it doesn't work. What else I can try?