Sha256: 26dc1b08c98210b97de87c8b615153b25440d66548c85d13b9306ef816e928ea

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module ExampleMenu
  def self.included(base)
    base.class_eval do
      add_locator         :menu_button,          ".menuButton"
      add_locator         :account,               xpath: ".//*[@id='metaMenu']//a[contains(., 'Account')]"
      add_locator         :log_out,               xpath: ".//*[@id='metaMenu']//a[contains(., 'Log Out')]"
    end
  end

  def open_menu
    log.info "Open menu"
    click_link locator(:menu_button)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
howitzer-0.0.3 generators/pages/templates/example_menu.rb
howitzer-0.0.1 generators/pages/templates/example_menu.rb