Sha256: 8b0d9b728d18597c434e288433af53c96bd2fb528ba2a55a12c256d358123ffc
Contents?: true
Size: 831 Bytes
Versions: 6
Compression:
Stored size: 831 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] 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 def include_platform_for platform super if platform[:platform] == :selenium require 'page-object/platforms/selenium_link' self.class.send :include, PageObject::Platforms::SeleniumLink end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems