tags:

views:

78

answers:

1

I am looking for a way to pass my webpages through a dtd validator as part of my WatiN tests, but I haven't found a clean way to access the raw html yet. Is there a built-in way to do it?

I think I could access the property IE.InternetExplorer and QueryInterface for the IPersistStreamInit interface and serialize the document to an IStream, but it seems like a lot of work for what I guess must be a fairly common task.

Am I missing something obvious in WatiN? Or can someone think of a better solution than the one I outlined above? That solution is very IE specific after all.

Thanks.

/ Johan Levin

A: 

There doesn't appear to be a better way. I filed a feature request and submitted a patch at WatiN's sourceforge tracker instead.

Johan Levin