Sha256: 1edc5787edb78780f455738641eab4916785f8b81bbb54e4309abc13ab53ad29
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 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, :value] end def self.selenium_finders super + [:value] end def include_platform_for platform super if platform[:platform] == :selenium_webdriver require 'page-object/platforms/selenium_webdriver/button' self.class.send :include, PageObject::Platforms::SeleniumWebDriver::Button end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.3.2 | lib/page-object/elements/button.rb |
page-object-0.3.1 | lib/page-object/elements/button.rb |
page-object-0.3.0 | lib/page-object/elements/button.rb |