Sha256: 0b21819b336207997e05835f96dd86f2f76de3eb1535422a0397ece7afcb65cb

Contents?: true

Size: 482 Bytes

Versions: 4

Compression:

Stored size: 482 Bytes

Contents

module Pagetience
  module ElementPlatforms
    class Base
      attr_reader :browser

      class << self
        def find(klazz)
          valid_ancestor = ANCESTORS.find { |a| a.present? klazz }
          if valid_ancestor
            valid_ancestor.new klazz
          end
        end
      end

      def initialize(*args)
        @browser = nil
      end

      def platform_initialize(*args); end

      def underlying_element_for(sym)
        nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pagetience-0.3.2 lib/pagetience/platforms/base.rb
pagetience-0.3.1 lib/pagetience/platforms/base.rb
pagetience-0.3.0 lib/pagetience/platforms/base.rb
pagetience-0.2.1 lib/pagetience/platforms/base.rb