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:in `traverse_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:in `fill_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:in `initialize' 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? <form name="aspnetForm" method="post" action="wfVerification.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm"> <input type="hidden" name="InitialDay" id="InitialDay" value="28" /> <input type="hidden" name="InitialMonth" id="InitialMonth" value="2" /
<input type="hidden" name="InitialYear" id="InitialYear" value="2008" /
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/ wEPDwUKMTI5MzY4NjA3Mg9kFgJmD2QWAgIDD2QWCAIBDxYCHgdWaXNpYmxlaGQCBQ8WAh8AaGQCBw9kFgQCEw8PFgIeBFRleHQFJ1ZlcmlmaWNhdGlvbiBQYWdlICh3ZlZlcmlmaWNhdGlvbi5hc3B4KWRkAhUPDxYCHwEFA1ZFUmRkAgkPDxYCHwEFCTgvMTQvMjAwN2RkZLnDusjaEnUtXt3/ cnLlAeRCPTgp" />
Regards/ Charles