Hi, this website generates incorrect code for WebTest default browser simulation with User-Agent string "4.0 (compatible; MSIE 6.0; Windows 98)".
If you set <config...> <header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"/> </config> it should work just fine. Nevertheless it seems that the default User-Agent string is not really correct. Cheers, Marc. -- Blog: http://mguillem.wordpress.com Test BCN wrote: > I found an item, but it looks that it's closed? I have the same problem > http://www.nabble.com/--htmlunit-Bugs-1845438---__doPostBack-support-under-webtestcanoo-1644-td14749042.html > > Example, I've just created a new user for this. > > http://www.fotocasa.es/area-personal__fotocasa.aspx?S42: > > user: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> password: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > <http://www.fotocasa.es/area-personal__fotocasa.aspx?S42> > > JavaScript error loading page > http://www.fotocasa.es/area-personal__fotocasa.aspx?S42: ReferenceError: > "WebForm_DoPostBackWithOptions" is not defined. (onclick event for > HtmlSubmitInput[<input type="submit" > name="ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login" value=" Ir " > onclick="javascript:WebForm_DoPostBackWithOptions(new > WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login", > "", true, "Login", "", false, false))" > id="ctl00_ContentPlaceHolder1_uie_LoginControl_btn_Login" title=" Ir " > class="btn">]#1) > > > Details > > javascript error ReferenceError: "WebForm_DoPostBackWithOptions" is not > defined. (onclick event for HtmlSubmitInput[<input type="submit" > name="ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login" value=" Ir " > onclick="javascript:WebForm_DoPostBackWithOptions(new > WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login", > "", true, "Login", "", false, false))" > id="ctl00_ContentPlaceHolder1_uie_LoginControl_btn_Login" title=" Ir " > class="btn">]#1) > line 1 > javascript source function () { [native code, arity=0] } > failing line function () { > javascript call stack ReferenceError: "WebForm_DoPostBackWithOptions" is > not defined. (onclick event for HtmlSubmitInput[<input type="submit" > name="ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login" value=" Ir " > onclick="javascript:WebForm_DoPostBackWithOptions(new > WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login", > "", true, "Login", "", false, false))" > id="ctl00_ContentPlaceHolder1_uie_LoginControl_btn_Login" title=" Ir " > class="btn">]#1) at (onclick event for HtmlSubmitInput[<input > type="submit" > name="ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login" value=" Ir " > onclick="javascript:WebForm_DoPostBackWithOptions(new > WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$uie_LoginControl$btn_Login", > "", true, "Login", "", false, false))" > id="ctl00_ContentPlaceHolder1_uie_LoginControl_btn_Login" title=" Ir " > class="btn">]:1) > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

