Unfortunately Filipin I do not have html samples at this time to show. I will conduct a short test and provide my results fail or pass to the community here.
Thanks Justin for your gem. I will test it out today and let you know the results. Sorry for the late response :D On Tuesday, 20 August 2013 11:38:29 UTC-6, Bashir Osman wrote: > > Hi, > > I read this post here: http://zeljkofilipin.com/watir-nokogiri/ > > Just curious does anyone know how to ONLY parse the DOM using Nokogiri > then using Watir to automate the DOM? > > This is what I'm currently doing, but its giving me SSL errors. So i'm > most likely doing something very wrong. I'm currently using Ruby 2.0 > > require 'rspec' > require 'watir' > require 'watir-webdriver' > require 'nokogiri' > require 'open-uri' > before(:each) do > url = @browser.url > puts "this is the #{url}" > doc = Nokogiri::HTML(open(url)) > puts doc.at_css("title").text > end > > This does work though: > > require 'nokogiri' > require 'open-uri' > url = 'http://www.google.com' > doc = Nokogiri::HTML(open(url)) > puts doc.at_css("title").text > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
