Sha256: 11c935e116025cb7af8e50712e1c9689856ad092a83a3109617c1ce84a86cbb8
Contents?: true
Size: 560 Bytes
Versions: 6
Compression:
Stored size: 560 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::SeleniumButton end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems