README.markdown in selenium-client-1.2.8 vs README.markdown in selenium-client-1.2.9

- old
+ new

@@ -67,12 +67,12 @@ #!/usr/bin/env ruby # # Sample Ruby script using the Selenium client API # - require "test/unit" require "rubygems" + gem "selenium-client", ">=1.2.9" require "selenium/client" begin @browser = Selenium::Client::Driver.new("localhost", 4444, "*firefox", "http://www.google.com", 10000); @browser.start_new_browser_session @@ -94,12 +94,12 @@ # # Sample Test:Unit based test case using the selenium-client API # require "test/unit" require "rubygems" - gem "selenium-client" - require "selenium" + gem "selenium-client", ">=1.2.9" + require "selenium/client" class ExampleTest < Test::Unit::TestCase attr_reader :browser def setup @@ -125,13 +125,13 @@ end If BDD is more your style, here is how you can achieve the same thing using RSpec: require 'rubygems' - require 'spec' - gem "selenium-client" - require "selenium" + gem "rspec", "=1.1.11" + gem "selenium-client", ">=1.2.9" + require "selenium/client" require "selenium/rspec/spec_helper" describe "Google Search" do attr_reader :selenium_driver alias :page :selenium_driver @@ -143,10 +143,10 @@ before(:each) do selenium_driver.start_new_browser_session end # The system capture need to happen BEFORE closing the Selenium session - config.append_after(:each) do + append_after(:each) do @selenium_driver.close_current_browser_session end it "can find Selenium" do page.open "/"