From: Vasudevan C. <vco...@gm...> - 2015-06-25 10:37:36
|
Hi Ahmed, Thanks for your reply. I setup an Apache webserver and followed the sequence of JS files to be sent to HTMLUnit. I added few alert statements inside the function. I have copied that below for your reference: finish_reload: function(a, b, c, d) { alert("Inside Reload......") ; RecaptchaState.payload_url = c; RecaptchaState.is_incorrect = !1; RecaptchaState.publisher_id = d; Z._set_challenge(a, b, !1); alert("Executed Set_challenge..."); Z.updateTabIndexes_() }, The REal browser was displaying both the alert statements. However, I did not see the alert statement being displayed in my browser nor in the console of the application. I was triggering the HTMLUnit app using another browser. I saw through charles as well as print statements in HTMLUnit that data exchange is fine. KIndly let me know how to trace further. If you need any additional data, I can share the same. Looking forward to your reply. Regards Vasu On 25 June 2015 at 02:01, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > You need to debug the JavaScript for captch, which is long and is minified. > > The first step is to have the all the files locally into a web server. > > Then you can 'beautify' the JavaScript with any online tool. > > Then you add alert() in various places, and see which was triggered by > real browser, and which isn't by HtmlUnit. > > Hope that helps, > Ahmed > ------------------------------ > > |