Sha256: 59790fc1c58e0a3197b0e585b00913d2f707223d718286ae9f8809dee8a42815
Contents?: true
Size: 745 Bytes
Versions: 5
Compression:
Stored size: 745 Bytes
Contents
module OperaWatir module Compat; end # Switches on compatibility layer (Watir 1 API). def self.compatibility! require 'operawatir/compat/browser' require 'operawatir/compat/element_finders' require 'operawatir/compat/window' Browser.send :include, Compat::Browser Window.send :include, Compat::ElementFinders Window.send :include, Compat::Window Collection.send :include, Compat::ElementFinders # TODO Ruby Modules can't override methods defined in their included klass # Requiring the files is OK, but there needs to be some way of detecting # that we are in compatibility mode. require 'operawatir/compat/collection' require 'operawatir/compat/element' end end
Version data entries
5 entries across 5 versions & 1 rubygems