From: Alain B. <alb...@gm...> - 2014-12-20 10:29:28
|
Further to Rbi, For debugging, it's nice to write a utility class to println the AsXml of the pages because without that it's pain in the neck to travale in the Dom using the variable window of the IDE. I usually take at this point the opportunity to set The correct DOcType I want and store the different pages (for example AfterLoggin.html, AfetrClickBtnValid.html etc... in a folder where I put also all the ressource needed (particulaly the images which are by default not loaded) When I said Firebuf is your friend , The most difficult thing using Htmlunit is not Htmlunit but to understand the structure of the "site" we are testing or scrapping 2014-12-19 22:14 GMT+01:00 Ronald Brill <rb...@rb...>: > >Not its not a new tab in browser. Its an dialog box and not an alert. > > > > As far as i know, the concept of 'dialog box' is not available in html. > Can you please make clear, what kind of 'dialog box' you are talking about. > > There are serveral options: > * the javascript confirm() command (res=window.confirm(question);) > * javascript window.open() that opens a different browser window (usually > a small one) > * by using some kind of js library that does some js/css/iframe magic to > simulate a (modal) dialog (like this: > http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf#) > > Additionally it is a good idea, to dump the current page (asXml) after > each step into a separate file, to have a visual id of the current > situation. > > rbri > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |