Sha256: 3ae2d4b68241a274ee561f3f59aed3850721aacda7fc95d9014687b1618c517e

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

$:.unshift File.dirname(__FILE__)

require 'home_page'
require 'directory_listing_page'
require 'license_page'

module Selenium
  class Menu
    attr_reader :webpage
    def initialize(webpage)
      @webpage = webpage
    end

    def home_link
      # todo there should be a way to alter this instance so that the click returns the directory listing page
      webpage.link(:id, 'home').with_target(DirectoryListingPage)
    end

    #MENU START
    def download_link
      webpage.link(:text, 'Download')
    end

    def license_link
      webpage.link(:text, 'License').with_target(LicensePage)
    end
#MENU END
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jacobdam-selenium-1.1.16 spec/selenium/examples/selenium_ruby/menu.rb
Selenium-1.1.11 spec/selenium/examples/selenium_ruby/menu.rb
Selenium-1.1.12 spec/selenium/examples/selenium_ruby/menu.rb
Selenium-1.1.14 spec/selenium/examples/selenium_ruby/menu.rb