Sha256: c1f532fe64023d00bfd12bcf6696bfc19af24ba84d40acd27027f6fcb54f951c
Contents?: true
Size: 861 Bytes
Versions: 3
Compression:
Stored size: 861 Bytes
Contents
class BaseAppScreen < TestCentricity::ScreenObject include SharedBaseAppScreen trait(:page_name) { 'Base App Screen' } # Base App screen UI elements buttons menu_button: { accessibility_id: 'open menu' }, cart_button: { accessibility_id: 'cart badge' } labels header_label: { xpath: '//android.view.ViewGroup[@content-desc="container header"]/android.widget.TextView' }, cart_quantity: { xpath: '//android.view.ViewGroup[@content-desc="cart badge"]/android.widget.TextView' } section :nav_menu, NavMenu def verify_page_ui ui = { menu_button => { visible: true, enabled: true }, cart_button => { visible: true, enabled: true } } verify_ui_states(ui) end def invoke_nav_menu menu_button.click nav_menu.wait_until_visible(3) end def open_cart cart_button.click end end
Version data entries
3 entries across 3 versions & 1 rubygems