Sha256: 2469502522cd36bdea6c05fd8db929872f2fa5f429d1d23cfb22f7fbb7282619
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 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 require 'page-object/platforms/selenium/button' self.class.send :include, PageObject::Platforms::Selenium::Button end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.2.5 | lib/page-object/elements/button.rb |
page-object-0.2.4 | lib/page-object/elements/button.rb |