Sha256: a3a05807ab3b1a1a187d24b4ffbcedb4aec84cda283af18cf38a806bad0f4864
Contents?: true
Size: 717 Bytes
Versions: 4
Compression:
Stored size: 717 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, :src, :alt, :css] end def self.selenium_finders super + [:value, :src, :alt] end end ::PageObject::Elements.type_to_class[:submit] = ::PageObject::Elements::Button ::PageObject::Elements.type_to_class[:image] = ::PageObject::Elements::Button ::PageObject::Elements.type_to_class[:button] = ::PageObject::Elements::Button ::PageObject::Elements.type_to_class[:reset] = ::PageObject::Elements::Button end end
Version data entries
4 entries across 4 versions & 1 rubygems