vendor/gems/gems/firewatir-1.2.1/firewatir.rb
#
# Description:
#   Show all the links available on the page.
#
# Output:
#   Name, id, href and index of all the links available on the page.
#

Show all the links available on the page.

Name, id, href and index of all the links available on the page.
Show all the links available on the page . Name id href and index of all the links available on the page .
def show_links
            links = Document.new(self).get_links
            puts "There are #{links.length} links"
            index = 1
            links.each do |l|
                puts "link:  name: #{l.name}"
                puts "         id: #{l.id}"
                puts "       href: #{l.href}"
                puts "      index: #{index}"
                index += 1
            end
        end
def show_links links = Document . new ( self ) . get_links puts "There are #{links.length} links" index = 1 links . each do | l | puts "link:  name: #{l.name}" puts "         id: #{l.id}" puts "       href: #{l.href}" puts "      index: #{index}" index += 1 end end
Description:
Show all the links available on the page.
Description : Show all the links available on the page .