Sha256: 9259f8dcab22d77783d236429c69471f2832de0033de461bbf97ab194b2ba70e
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
require_relative 'popup/webkit' require_relative 'popup/selenium' module Prickle module Capybara class Popup def initialize return @base = Popups::Webkit.new if ::Capybara.current_driver == :webkit or ::Capybara.javascript_driver == :webkit @base = Popups::Selenium.new end def method_missing method, *args, &block if @base.respond_to? method @base.send method, *args, &block else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prickle-0.1.0 | lib/prickle/capybara/popup.rb |
prickle-0.0.6 | lib/prickle/capybara/popup.rb |