Sha256: 53b28f30929ec4a2690fc18c72d864c734691af55879991ea926908cd71e9a86
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
module PageObject module Elements class Button < Element def initialize(element, platform) @element = element include_platform_for platform end protected def self.watir_finders super + [:text] end def include_platform_for platform super if platform[:platform] == :selenium require 'page-object/platforms/selenium/button' self.class.send :include, PageObject::Platforms::Selenium::Button end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.2.3 | lib/page-object/elements/button.rb |
page-object-0.2.2 | lib/page-object/elements/button.rb |
page-object-0.2.1 | lib/page-object/elements/button.rb |