Sha256: 1eed07d0f9a24ab6214ffc3789323937efbbf8bc7c29f7238bd3a2d675d15363
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
module OperaWatir module Compat module Browser extend Forwardable def method_missing(method, *args, &blk) if active_window.respond_to? method active_window.send(method, *args, &blk) else super end end # Quits the browser def quit browser.quit! end # Class#type is defined by Ruby, it will never reach # #method_missing. def_delegator :active_window, :type end end end
Version data entries
5 entries across 5 versions & 1 rubygems