From: Brad C. <bc...@bo...> - 2003-07-23 14:21:10
|
We ended up just keeping our own Map of the WebWindows we knew about so whatever happens to the real names of the windows will be transparent to us. Any new TopLevelWindow we create would also have no name. This should more closely resemble the real world situation you observed in Mozilla and IE. thx Brad C At 08:00 PM 7/22/2003, Mike Bowler wrote: >Brad Clarke wrote: > > Is there a reason the default WebWindow has an empty string for a > > name? > >I see from experimentation that Mozilla and IE both use an empty string >for the name of the initial window so most likely that was the reason. I >can't remember for sure but this seems reasonable ;-) > > > We're looking to use the name as a way to manage concurrent windows > > and I can't really decide what to do about the default window. If it > > had a name of "Default Window", "Main Top Level Window", or something > > of that nature the code would look a lot more explicit. > >The problem with these names is that this window is just the one that will >be used during page load if no window was specified. You can change the >current window at any time with WebClient.setCurrentWindow() so calling >this the "main top level window" would be misleading. > >Could you create a new TopLevelWindow with a name of your choice and then >use that as the current? > >-- >Mike Bowler >Principal, Gargoyle Software Inc. >Voice: (416) 822-0973 | Email : mb...@Ga... >Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com > > > >------------------------------------------------------- >This SF.net email is sponsored by: VM Ware >With VMware you can run multiple operating systems on a single machine. >WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the >same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user |