Sha256: a3e7837ff16df8a76c0922f6e49a42c7ebbcb064ae518e4600898302ba732ab4
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
module Mohawk module Adapters module UIA class MenuItem < Control class MenuItemNotFound < StandardError; end def select element.select_menu_item(*path) end def click element.menu_item(*path).click_center end def exist? !!element.menu_item(*path) end alias_method :exists?, :exist? private def element @parent.with(:menu_items) end def path [@locator[:path] || @locator[:text]].flatten end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mohawk-0.4 | lib/mohawk/adapters/uia/menu_item.rb |
mohawk-0.3 | lib/mohawk/adapters/uia/menu_item.rb |
mohawk-0.2.1 | lib/mohawk/adapters/uia/menu_item.rb |