class WebViewScreen < BaseAppScreen include SharedWebViewScreen trait(:page_name) { 'Webview' } trait(:page_locator) { { accessibility_id: 'webview selection screen' } } trait(:page_url) { 'webview' } trait(:navigator) { nav_menu.open_webview } # Webview screen UI elements label :url_label, { xpath: '//android.view.ViewGroup[@content-desc="webview selection screen"]/android.widget.ScrollView/android.view.ViewGroup/android.widget.TextView[1]' } textfield :url_field, { accessibility_id: 'URL input field' } button :go_to_site_button, { accessibility_id: 'Go To Site button' } end