Sha256: 8abaf69564cffc748fb9e119efb2e860cfd75a1db06768de8d08326c2cb96c2b

Contents?: true

Size: 377 Bytes

Versions: 12

Compression:

Stored size: 377 Bytes

Contents

# This class is example of section
class MenuSection < Howitzer::Web::Section
  me :id, 'metaMenu'

  element :menu_button, '.menuButton'
  element :account, :xpath, ".//*[@id='metaMenu']//a[contains(., 'Account')]"
  element :log_out, :xpath, ".//*[@id='metaMenu']//a[contains(., 'Log Out')]"

  def logout
    Howitzer::Log.info 'Log out'
    log_out_element.click
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
howitzer-2.6.1 generators/web/templates/menu_section.rb
howitzer-2.6.0 generators/web/templates/menu_section.rb
howitzer-2.5.0 generators/web/templates/menu_section.rb
howitzer-2.4.0 generators/web/templates/menu_section.rb
howitzer-2.3.0 generators/web/templates/menu_section.rb
howitzer-2.2.0 generators/web/templates/menu_section.rb
howitzer-2.1.1 generators/web/templates/menu_section.rb
howitzer-2.1.0 generators/web/templates/menu_section.rb
howitzer-2.0.3 generators/web/templates/menu_section.rb
howitzer-2.0.2 generators/web/templates/menu_section.rb
howitzer-2.0.1 generators/web/templates/menu_section.rb
howitzer-2.0.0 generators/web/templates/menu_section.rb