Sha256: 7b701cb86799cb81482f57d740c4590abc8ae5143735f85f19e63cc18fe07e51
Contents?: true
Size: 637 Bytes
Versions: 2
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, :src, :alt, :css] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
page-object-2.1.1 | lib/page-object/elements/button.rb |
page-object-2.1 | lib/page-object/elements/button.rb |