1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara.rb
Theo Hultberg and Jonas Nicklas 6b099a4a33 renamed to capybara
2009-11-16 22:02:16 +01:00

29 lines
749 B
Ruby

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'
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