Hi Ritesh, > Yes I do work at eBay.
ups, sorry, I hope I haven't offended you. Nice to see that eBay uses webtest (or evaluates it?). > I will probably have to investigate fixing the > javascript issue either in eBay code or in HTMLUnit. As far as I remember the code is ok (as it works in normal browsers) but apparently really really unnecessary complicated (or obfuscated?). This may be the code from external trackers site, I'm not sure. > For looking into HTMLUnit - can you give me some pointers, based on > the error I got, how to go about debugging the issue? First I would recommand you to investigate directly with htmlunit and not webtest: when debugging htmlunit, it is easier not to have additional things (ant + webtest) around. >From your error: TypeError: Cannot call method "registerListener" of null (http://include.ebaystatic.com/js/e453/ s/ebaybase_e4533us.js#228) I would look at this js file line 228 to see on which object registerListener is called. The problem here is that this object (for htmlunit) is null, what it shouldn't be. If it isn't clear where this object comes from, I would add some alert(...) in the js code to "see" what happens (I had the project to bind a js debugger to htmlunit but never had time for it). It may be usefull to use the DebuggingWebConnection to have an overview of all files that are loaded. A first step toward finding the problem is to be able to reproduce it locally (from files loaded from your filesystem) and then to reduce step by step the size of the files to the smallest amount of code generating the error. Marc. PS: a feature of htmlunit that would surely make sense in the case of a website like eBay is the ability to simulate the js behavior of different browsers. This is currently limited to Mozilla/Firefox and IE but only because nobody needed it for other browsers. -- View this message in context: http://www.nabble.com/Javascript-issue-t1353420.html#a3644926 Sent from the WebTest forum at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

