Sha256: 7346a79c71ade0bb1caa791d15542aae79ebea3c2bc948bea9b1a173cf73dcd1

Contents?: true

Size: 783 Bytes

Versions: 1

Compression:

Stored size: 783 Bytes

Contents

require 'nokogiri'

module Capybara
  VERSION = '0.1'

  class CapybaraError < StandardError; end
  class DriverNotFoundError < CapybaraError; end
  class ElementNotFound < CapybaraError; end

  class << self
    attr_accessor :debug, :asset_root
    
    def log(message)
      puts "[capybara] #{message}" if debug
      true
    end
  end
  
  autoload :Server, 'capybara/server'
  autoload :Session, 'capybara/session'
  autoload :Node, 'capybara/node'

  module Driver
    autoload :RackTest, 'capybara/driver/rack_test_driver'
    autoload :Culerity, 'capybara/driver/culerity_driver'
    autoload :SafariWatir, 'capybara/driver/safariwatir_driver'
    autoload :FireWatir, 'capybara/driver/firewatir_driver'
    autoload :Selenium, 'capybara/driver/selenium_driver'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-0.1 lib/capybara.rb