Sha256: c1fe9d2a7ad3ab7e99c3259fb124acadda5cec5e605d5fe822b2b55df225fe3f
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
class GeoLocationScreen < BaseAppScreen trait(:page_name) { 'Geo Location' } trait(:page_locator) { { accessibility_id: 'geo location screen' } } trait(:page_url) { 'geo-locations' } trait(:navigator) { nav_menu.open_geo_location } # Geo Location screen UI elements buttons start_observing_button: { accessibility_id: 'Start Observing button'}, stop_observing_button: { accessibility_id: 'Stop Observing button'} labels latitude_label: { accessibility_id: 'Latitude:' }, latitude_data: { accessibility_id: 'latitude data' }, longitude_label: { accessibility_id: 'Longitude:' }, longitude_data: { accessibility_id: 'longitude data' } def verify_page_ui super ui = { header_label => { visible: true, caption: 'Geo Location' }, start_observing_button => { visible: true, enabled: false, caption: 'Start Observing' }, stop_observing_button => { visible: true, enabled: true, caption: 'Stop Observing' }, latitude_label => { visible: true, caption: 'Latitude:' }, latitude_data => { visible: true, caption: { not_equal: '0' } }, longitude_label => { visible: true, caption: 'Longitude:' }, longitude_data => { visible: true, caption: { not_equal: '0' } } } verify_ui_states(ui) end def modal_action(action) alert_modal.await_and_respond(action.downcase.to_sym, timeout = 1, button_name = 'Allow Once') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
testcentricity-3.0.4 | features/support/ios/screens/geo_location_screen.rb |
testcentricity-3.0.3 | features/support/ios/screens/geo_location_screen.rb |