From: BARAHONA,JESUS (HP-Spain,ex2) <jes...@hp...> - 2003-10-14 12:31:49
|
Hi all, I've begun with htmlUnit two weeks ago and i'm having problems when i try to load a page with JavaScript. I've been debugging and i think the problem is when trying to access to the parent of a frame with Javascript "parent.nav.document". I get the same error if i try to load that frame separately from the other, that is understandable because in that case there is no parent frame. For this, it seems as htmlUnit just load the frames separately. Am i right? Will htmlUnit support frames early? I still have another question about Javascript in htmlUnit. In my webPage i use some "if" Javascript sentences for know in which browser i'm working on, for example "navigator.appName == 'Netscape'". Is there any way with htmlUnit to simulate that this JavaScript is being interpreted by Netscape Navigator or by Internet Explorer? Has the file JavaScriptConfiguration.xml any relation with that? What is the use of that file? Thank You for your support. Regards. |