Displaying 2 results from an estimated 2 matches for "field_with".
2009 Sep 25
0
WWW::Mechanize and Rails console not playing well
...#39;
agent = WWW::Mechanize.new { |a| a.log = Logger.new("mech.log") }
agent.user_agent_alias = ''Mac Safari''
page = agent.get(''http://www.fyi.legis.state.tx.us/Address.aspx'')
search_form = page.form_with(:name => "AddressForm")
search_form.field_with(:name => "Address1").value = "501 W 26th St,
Apt 110"
search_form.field_with(:name => "City").value = "Austin"
search_form.field_with(:name => "ZipCode").value = "78705"
search_form.field_with(:name => "DistrictType")...
2012 Dec 19
0
(no subject)
...path "C:/Users/amdx3/Desktop/cacert.p12"
m.agent.http.ca_file = ca_path
end
pag = m.get "https://www.newpage.com.mx/login" # the site is only
informative
form = pagina.forms.first
campos = form.fields.find_all
titulo = pagina.title
form.field_with(:name => "username").value = "******" only informative
form.field_with(:name => "password").value = "******" only informative
search_results = m.submit form
@page = search_results.body
and display this:
Action Controller: Exception c...