[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-user
Subject:    Re: [Htmlunit-user] Testing Ajax-Webpage with htmlunit
From:       Marc Guillemot <mguillemot () yahoo ! fr>
Date:       2009-09-24 13:13:51
Message-ID: 4ABB708F.2070608 () yahoo ! fr
[Download RAW message or body]

Hi Florian,

should a change handler on the select triggers your ajax stuff? Have you 
tried to wait and to look at the page's state after a few seconds?

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Florian Reiser wrote:
> Hi Marc,
> 
> I do the following to retrieve the page which is modified by ajax:
> 
> HtmlSelect select = (HtmlSelect) registerPage2
>     .getElementById("dienstleistertypSelect");
> HtmlPage registerPage2 = dienstleistertyp.click();
> select = (HtmlSelect) registerPage2
>     .getElementById("dienstleistertypSelect");
> registerPage2 = (HtmlPage) dienstleistertyp.setSelectedAttribute("0",
>     true); // select first option
> 
> Now I should have the page which is modified by ajax in the registerPage2
> variable, or?
> 
> With kind regards
> 
> Florian Reiser
> 
> -----Ursprüngliche Nachricht-----
> Von: Marc Guillemot [mailto:mguillemot@yahoo.fr] 
> Gesendet: Freitag, 18. September 2009 11:47
> An: htmlunit-user@lists.sourceforge.net
> Betreff: Re: [Htmlunit-user] Testing Ajax-Webpage with htmlunit
> 
> Hi Florian,
> 
> if the page's state isn't updated after a big Thread.sleep, then there 
> are only 2 possibilities:
> - HtmlUnit doesn't work as you expected, meaning probably that you've 
> hit some point where the simulation isn't yet good enough.
> - your code to verify that the state hasn't been updated is incorrect
> 
> In the first case, you may try the different BrowserVersion, perhaps 
> does it work better with an other one. Be sure to use the latest 
> snapshot, numerous improvements are made each week. If it doesn't help, 
> then you'll have to start debugging. Viel Spaß ;-)
> 
> Gruss,
> Marc.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic