Sha256: 4a83bbaf9345db182faaa5d04ba4130ea5075e90bc7596350383a5b7c1e02cb6
Contents?: true
Size: 650 Bytes
Versions: 4
Compression:
Stored size: 650 Bytes
Contents
module PageObject module Elements class Link < Element def initialize(element, platform) @element = element include_platform_for platform end protected def self.watir_finders super + [:href, :text, :css, :title] end def self.watir_mapping super.merge({:link => :text, :link_text => :text}) end def self.selenium_finders super + [:link, :link_text, :title] end def self.selenium_mapping super.merge(:text => :link_text) end end ::PageObject::Elements.tag_to_class[:a] = ::PageObject::Elements::Link end end
Version data entries
4 entries across 4 versions & 1 rubygems