From: Vasudevan C. <vco...@gm...> - 2011-12-21 10:53:25
|
Hi Marc, Thanks for your reply. I tried setting the BrowserVersion to IE 6, 7 and 8 but in WebClient and that also did not help. I did not check the validateLogin() evaluation. By looking at the source code of validateLogin(), it should evaluate to true. I am setting the values for User ID & Password before clicking on the Sign In Button. I am calling the HTMLUnit APIs from Clojure programming language. If you tell me, how to check the valuation of JS inside HTMLUnit, I shall do that and get back to you. Looking forward to your reply. Regards Vasu On Wed, Dec 21, 2011 at 3:10 PM, Marc Guillemot <mgu...@ya...> wrote: > Hi, > > did you check how ValidateLogin() evaluates with HtmlUnit and with the > simulated browser? > > Cheers, > Marc. > -- > HtmlUnit support & consulting from the source > Blog: http://mguillem.wordpress.com > > > Le 19/12/2011 22:00, Vasudevan Comandur a écrit : > > Hi, > > > > I am using HTMLunit 2.9 and trying to login to a resume portal. After > > entering the values for user ID/password, I was clicking the button > > and I did not see the POST request being sent to the web server. The > > site is a .NET site and I have copied the contents of the HTMLButton node > > below. I have enabled the javascript for the instantiated webclient. > > > > <HtmlButton HtmlButton[<button onclick="if(ValidateLogin()) > > {noPostBack('https://hiring.monster.com/Login.as > > px?redirect=');} else {return > > false;}if(window.addEventListener){location.href=this.href;} > > __doPostBack('ctl00$ctl00$ContentPlaceHol > > derBase$cphBody$LoginUser$SubmitImage','')" > > id="ctl00_ctl00_ContentPlaceHolderBase_cphBody_LoginUser_SubmitImage" > > tabindex="3" valid > > ationgroup="LoginCurrentUser" class="redux-button btn-primary-large" > > title="Sign In" type="button">]> > > > > Am I doing something wrong? > > > > Thanks in advance for your suggestion or ideas. > > > > Regards > > Vasu > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |