Sha256: 5958e2d8c2f5af20d23c2694a76c36e80adc435b9a023478362777edb10239cd
Contents?: true
Size: 1.22 KB
Versions: 38
Compression:
Stored size: 1.22 KB
Contents
module Celerity class Link < Element include ClickableElement TAGS = [ Identifier.new('a') ] ATTRIBUTES = BASE_ATTRIBUTES | [ :accesskey, :charset, :coords, :href, :hreflang, :name, :onblur, :onfocus, :rel, :rev, :shape, :tabindex, :target, :type, ] DEFAULT_HOW = :href # # Returns the absolute URL for this link (Celerity-specific) # # (Watir/IE does this for href(), but we don't want that.) # def absolute_url assert_exists href = @object.getAttribute('href') unless href.empty? || URI.parse(href).absolute? href = URI.join(browser.url, href).to_s end href end end # Link end # Celerity
Version data entries
38 entries across 38 versions & 6 rubygems