class Prickle::Capybara::Popup

Public Class Methods

new() click to toggle source
# File lib/prickle/capybara/popup.rb, line 8
def initialize
  return @base = Popups::Webkit.new if ::Capybara.current_driver == :webkit or ::Capybara.javascript_driver == :webkit
  @base = Popups::Selenium.new
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/prickle/capybara/popup.rb, line 14
def method_missing method, *args, &block
  if @base.respond_to? method
    @base.send method, *args, &block
  else
    super
  end

end