Can the current version of scrubyt work with https pages and
aspnetForms?
I am getting the following
sss_data = Scrubyt::Extractor.define do
?> fetch ‘https://www.sss.gov/RegVer/wfVerification.aspx’
fill_textfield “_ctl0:ComtentPlaceHolder1:tbLastName”, ‘Jones’
fill_textfield “_ctl0:ComtentPlaceHolder1:tbSSAN”, “510-99-9999”
fill_textfield “_ctl0:ComtentPlaceHolder1:tbDOB”, ‘02021966’
?> submit1 #I also tried this with submit
end
RuntimeError: The element is nil! This probably means the widget with
the specified name (‘form’) does not exist
from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/
utils/xpathutils.rb:110:intraverse_up_until_name' from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/ navigation/navigation_actions.rb:91:in
lookup_form_for_tag’
from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/
navigation/navigation_actions.rb:27:infill_textfield' from (irb):14 from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/ shared/extractor.rb:60:in
instance_eval’
from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/
shared/extractor.rb:60:ininitialize' from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/ shared/extractor.rb:17:in
new’
from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/
shared/extractor.rb:17:in `define’
from (irb):11
The relevant html from the site is
http://pastie.caboo.se/159097
complete html source is here
http://pastie.caboo.se/159111
or just go to the page here
https://www.sss.gov/RegVer/wfVerification.aspx
It appears the form name is “aspnetForm” is there a way to specify
this as the form name?
<input type=“hidden” name=“InitialMonth” id=“InitialMonth” value=“2” /
<input type=“hidden” name=“InitialYear” id=“InitialYear” value=“2008” /
Regards/ Charles