Sha256: 053b04718b1cfffab81782fcfb9479885fde7df81e488ae1a5f30e40da4a567c
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
module PageObject module Elements class Link < Element def self.watir_identifier_for identifier identifier_for identifier, watir_finders, watir_mapping end def self.selenium_identifier_for identifier identifier = identifier_for identifier, selenium_finders, selenium_mapping return identifier.keys.first, identifier.values.first end protected def self.watir_finders super + [:href, :text] end def self.watir_mapping super.merge({ :link => :text, :link_text => :text }) end def self.selenium_finders super + [:link, :link_text] end def self.selenium_mapping super.merge(:text => :link_text) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
page-object-0.0.1 | lib/page-object/elements/link.rb |