On Wednesday, May 15, 2013 7:03:22 PM UTC-7, Lonny Eachus wrote:

>
> This is a rather urgent issue. 
>
> I have some whole-page HTML in a database. I would like to get this HTML 
> into Watir for parsing. 
>
> How can I tell Watir to load this HTML into the DOM? 
>
> I know I could write the data to a .html file and read it that way, but 
> that would seem to be a rather roundabout way to do it. 
>
> How does one load HTML from text into Watir? 
>
>
> Lonny Eachus 
> =========== 
>   
>

Watir's specialty is driving browsers.. parsing HTML comes with that 
territory but neither Webdriver nor Watir are really optimized for html 
parsing.

Gems like Nokogiri on the other hand ARE designed for just that sort of 
thing.  IMHO if you are just trying to parse HTML, and not trying to drive 
a browser, you might be better off to just use Nokogiri 
(http://rubygems.org/gems/nokogiri) 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to