From 324f412c7e3c9ec2ecda72e63c90e795542bb627 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sat, 25 Oct 2008 12:43:35 -0400 Subject: [PATCH] Removing spikes --- mechanize_spike.rb | 10 ---------- selenium_spike.rb | 34 ---------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 mechanize_spike.rb delete mode 100644 selenium_spike.rb diff --git a/mechanize_spike.rb b/mechanize_spike.rb deleted file mode 100644 index 095afd0..0000000 --- a/mechanize_spike.rb +++ /dev/null @@ -1,10 +0,0 @@ -require "lib/webrat" -require "lib/webrat/mechanize" - -include Webrat - -sess = MechanizeSession.new -sess.visits "http://www.google.com/" -sess.fills_in "q", :with => "Webrat" -sess.clicks_button -sess.save_and_open_page \ No newline at end of file diff --git a/selenium_spike.rb b/selenium_spike.rb deleted file mode 100644 index 66caa12..0000000 --- a/selenium_spike.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'rubygems' -require "lib/webrat" -require "lib/webrat/selenium" -require 'selenium' - -include Webrat - -# To try it out: -# -# Install the required gem -# > sudo gem install Selenium -# -# Fire up the Selenium proxy server -# > selenium -# -# Run this script -# > ruby selenium_spike.rb - - -@sel = Selenium::SeleniumDriver.new("localhost", 4444, "*chrome", "http://localhost", 15000) -@sel.start - -sess = SeleniumSession.new(@sel) -sess.visits "http://www.google.com/" -sess.fills_in "q", :with => "Webrat" -sess.clicks_link 'Images' -sess.clicks_button 'Search' -sess.selects 'Small images', :from => 'imagesize' -sess.clicks_link 'Preferences' -sess.chooses 'Do not filter' -sess.checks 'Open search results in a new browser window' -sess.clicks_button -sess.save_and_open_page -@sel.stop