Sha256: 61f48c4775075e224c95bc2e60b3666a2e95460aca1c929544769f969f1627ef
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 Bytes
Contents
module PageObject module Elements class RadioButton < Element def initialize(element, platform) @element = element include_platform_for platform end protected def include_platform_for platform super if platform[:platform] == :watir require 'page-object/platforms/watir/radio_button' self.class.send :include, PageObject::Platforms::Watir::RadioButton elsif platform[:platform] == :selenium require 'page-object/platforms/selenium/radio_button' self.class.send :include, PageObject::Platforms::Selenium::RadioButton else raise ArgumentError, "expect platform to be :watir or :selenium" 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/radio_button.rb |
page-object-0.2.4 | lib/page-object/elements/radio_button.rb |