Marc,

basically I want to be able to go to a page which might be in any of the
standard formats; HTML, XHTML, XML, WML, Text, etc. In essence, I want
to be able to use the same XPath (that is where the conversion comes in)
to find the links and widgets no matter what the format.

On the pages I want to find particular links and activate them or,
alternatively create a list of links to the static information on some
pages; images or text.

I once changed HttpUnit to have it invoke different parsers and convert
things to a common format for testing. This was prior to when I found
out about HtmlUnit and Webtest. The last version of HttpUnit that I have
seen is from around 2002, so I suspect it is hibernating for now.

George

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Wednesday, April 02, 2008 2:25 AM
To: [email protected]
Subject: Re: [Webtest] Using different Web Protocols?

Hi,

HtmlUnit builds a different subclass of Page depending on the mime type
of the response. Only 2 types "family" are parsed: html and xml, text
and others are just read as received.

With this explanations, can you precise what you want to do?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


George Policello wrote:
> Does anyone have a way to put various handlers on incoming pages,
>     <invoke ...>?
> 
> That is, I would like to use some trigger, for example, mime type, to
> select a different parser for things such as
> 
> * WML or mime == text/vnd.wap.wml
> * text/plain
> * WapMultipart
> * WapXhtml
> * etc.
> 
> My guess is that this has to be done at the HtmlUnit level but if
> someone can offer an example, it would be most appreciated.
> 
> Thanks for any suggestions,
> George
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to