i am suspecting "ajaxLoader" and "__RequestVerificationToken" in the below html ...how to handle this kind of Scenario ?
<form id="LogOnForm" method="post" action="/Account/Login">
<span id="ValidationErrors">
</span>
<div class="loginDrop">
<fieldset>
<legend></legend>
<div class="loginDropLeft">
<h2>Log In</h2>
<p>Please enter your username and password.<br>
<a href="/Content/Register">Register</a> if you don't have an account.</p>
</div>
<div class="loginDropRight">
<div class="formWrap">
<div class="FormLabel">
<label for="UserName">Username</label>
</div>
<div class="FormInput">
<input id="UserName" name="UserName" tabindex="1" type="text" value="">
</div>
</div>
<div class="formWrap">
<div class="FormLabel">
<label for="Password">Password</label>
<a class="forgotPass" href="/Account/ForgotPassword" tabindex="5">(Forgot?)</a>
</div>
<div class="FormInput">
<input id="Password" name="Password" tabindex="2" type="password"><br>
</div>
</div>
<div class="formWrap">
<div class="formSubmit">
<input id="RememberMe" name="RememberMe" tabindex="3" type="checkbox" value="true"><input name="RememberMe" type="hidden" value="false">
<label for="RememberMe">Remember me?</label>
<input type="submit" value="Log In" id="LogOnSubmit" class="button orange" tabindex="4"><div id="ajaxLoader" class="ajaxLoader" style="display: none; "><img src="/Content/Images/spinner.gif" alt="Loading Indicator Image">Loading...</div>
</div>
</div>
<input name="__RequestVerificationToken" type="hidden" value="UDJ90FLzPt6kKjvLi8ilZ88T11SgWpLouKBqsy/uyBQkxi6MmpYZHb61PTvDpamev5f7Cpqg0AwP5fsK3lw733z+epMSDVYPolTZleFmFLZb4CyRXIWrKjRKORwX6Yzeu59ZL2UWWTixTTqghKZvQas86rBrisC5pc10t7suLdc=">
</div>
</fieldset>
</div>
</form>
casper.start('home url', function() {
// Checking the login form Exist
this.test.assertExists('form#LogOnForm', 'login form is found');
// Fill username and Password to the inputbox
this.fill('form#LogOnForm', {
'UserName': 'tempusername',
'Password': 'temp pass'
}, true);
});
casper.then(function() {
this.waitForResource("next url after succesful login");