[Celerity-users] unable to click a button - overlooking something ?
Axel Etzold
AEtzold at gmx.de
Sun Sep 27 05:38:56 EDT 2009
> Betreff: Re: [Celerity-users] unable to click a button - overlooking something ?
> On Sat, Sep 26, 2009 at 8:12 PM, Axel Etzold <AEtzold at gmx.de> wrote:
> > Dear all,
> >
> > I'd like to enter some text into a text field in a
> > website and click a button.
> > Entering the text works, finding the button works,
> > but clicking it doesn't ( I am expecting a page
> > with many different tenses of a Portuguese verb, "falar").
> >
> > What am I missing ?
> >
>
> The clicking works - you can confirm it by doing 'puts browser.xml'
> instead of 'puts browser.text'. However, it seems like you've hit a
> bug in HtmlUnit's HTML parser - it's having trouble with the invalid
> use of the <ul> tag on this page, which causes Browser#text to fail.
>
> You should:
>
> 1. Make sure the page validates if you're the author
> 2. File a bug report to HtmlUnit's tracker:
> http://sourceforge.net/tracker/?group_id=47038&atid=448266
Dear Jari,
thank you for your help! This really got me going !
I'm not the author of the website, so I can't change that.
However, rather than to force an HTML parser to process invalid tags
correctly, couldn't the Browser#text method be changed to raise
an error, if Browser#xml actually returned a response ?
Best regards,
Axel
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Celerity-users
mailing list