class Mohawk::Adapters::UIA::MenuItem
Public Instance Methods
click()
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 12 def click until_successful { element.menu_item(*path).click_center } end
exist?()
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 16 def exist? !!element.menu_item(*path) end
Also aliased as: exists?
select()
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 8 def select until_successful { element.select_menu_item(*path) } end
Private Instance Methods
element()
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 23 def element @parent.with(:menu_items) end
path()
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 27 def path [@locator[:path] || @locator[:text]].flatten end
until_successful(&block)
click to toggle source
# File lib/mohawk/adapters/uia/menu_item.rb, line 31 def until_successful(&block) wait_until do begin block.call true rescue false end end end