: ruby script/console require 'mechanize' agent = WWW::Mechanize.new agent.get("https://www.owens.edu/cgi-bin/class.pl/") agent.page.forms form = agent.page.forms.last form.occ_subject = "chm" form.submit.search => []  