Re: Testing various HTML constructs

2006-07-09 Thread Stephen R Laniel
On Sat, Jul 08, 2006 at 07:06:15PM +0300, Gabor Szabo wrote: > Specifically I know there should be two tables on the page. > One of them belongs to a form the other one should contain a > list of device names. How can I retreive the list of tables and then how > can I parse the tables? Me, I'd use

Re: Testing various HTML constructs

2006-07-09 Thread Jonathan Rockway
Andy Lester wrote: > > On Jul 8, 2006, at 10:31 PM, Michael G Schwern wrote: > >> If your XPath parser balks at non-XHTML HTML then just run it through >> HTML::Tidy->clean which will convert it to XHTML. > > Usually. If usually isn't good enough, you can always write your own HTML converter wi

Re: Testing various HTML constructs

2006-07-08 Thread Michael G Schwern
On 7/8/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: * Gabor Szabo <[EMAIL PROTECTED]> [2006-07-08 18:10]: > How can I check other HTML constructs? I'd marry XML::LibXML's HTML parsing mode into W::M so I could prod the document with XPath expressions, then I'd add some convenience methods added T

Re: Testing various HTML constructs

2006-07-08 Thread Andy Lester
On Jul 8, 2006, at 10:31 PM, Michael G Schwern wrote: If your XPath parser balks at non-XHTML HTML then just run it through HTML::Tidy->clean which will convert it to XHTML. Usually. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Testing various HTML constructs

2006-07-08 Thread A. Pagaltzis
* Gabor Szabo <[EMAIL PROTECTED]> [2006-07-08 18:10]: > How can I check other HTML constructs? I’d marry XML::LibXML’s HTML parsing mode into W::M so I could prod the document with XPath expressions, then I’d add some convenience methods added T::W::M. Regards, -- Aristotle Pagaltzis //

Testing various HTML constructs

2006-07-08 Thread Gabor Szabo
During web testing using Test::WWW::Mechanize I can check if the current page has the correct links (by fetching all links) and if the pages has the correct forms with the correct input fields. How can I check other HTML constructs? Specifically I know there should be two tables on the page. One