Example #1
0
 def select_sim_1(self):
     element = self.marionette.find_element(*self._sim_1_selector_locator)
     Wait(self.marionette).until(expected.element_displayed(element))
     element.tap()
     Wait(self.marionette).until(expected.element_displayed(*self._sim_1_settings_page_locator))
     # Check whether Cell Broadcast is enabled.  If so, wait until the switch transition is complete
     # for the emergency alert switch as well
     cell_broadcast_switch = GaiaBinaryControl(self.marionette, self._cell_broadcast_switch_locator)
     if cell_broadcast_switch.is_checked:
         emerg_alert_switch = GaiaBinaryControl(self.marionette, self._emerg_alert_switch_locator)
         Wait(self.marionette).until(lambda m: emerg_alert_switch.is_checked)
Example #2
0
    def enable_fixed_dialing(self):
        GaiaBinaryControl(self.marionette,
                          self._toggle_fixed_dialing_number_locator).enable()

        Wait(self.marionette).until(
            expected.element_displayed(*self._sim_pin_area_locator))
        self.marionette.switch_to_frame()
        Wait(self.marionette).until(
            lambda m: self.keyboard.is_keyboard_displayed)
        self.apps.switch_to_displayed_app()
 def _is_visible_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._visible_to_all_checkbox_locator)
Example #4
0
 def is_roaming_toggle_checked(self):
     return GaiaBinaryControl(self.marionette, self._data_roaming_enabled_input_locator).is_checked
 def _bluetooth_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._bluetooth_checkbox_locator)
Example #6
0
 def select_language(self, language):
     language_locator = (self._select_language_locator[0],
                         self._select_language_locator[1] % language)
     GaiaBinaryControl(self.marionette, language_locator).enable()
Example #7
0
 def _usb_checkbox(self):
     return GaiaBinaryControl(self.marionette,
                              self._usb_storage_checkbox_locator)
Example #8
0
 def _share_data_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._statistic_checkbox_locator)
Example #9
0
 def _default_format_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._use_default_switch_locator)
Example #10
0
 def _airplane_checkbox(self):
     return GaiaBinaryControl(self.marionette, self._airplane_switch_locator)
Example #11
0
 def _gps_checkbox(self):
     return GaiaBinaryControl(self.marionette, self._gps_switch_locator)
Example #12
0
 def _metrics_none_radio(self):
     return GaiaBinaryControl(self.marionette, self._metrics_none_locator)
Example #13
0
 def enable_power_save_mode(self):
     GaiaBinaryControl(self.marionette,
                       self._power_save_checkbox_locator).enable()
Example #14
0
 def enable_set_ice_contact(self):
     GaiaBinaryControl(self.marionette, self._toggle_locator).enable()
     return SetIceContacts(self.marionette)
Example #15
0
 def _hotspot_switch(self):
     return GaiaBinaryControl(self.marionette, self._hotspot_switch_locator)
Example #16
0
 def _lockscreen_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._lockscreen_checkbox_locator)
Example #17
0
 def _checkbox(self):
     return GaiaBinaryControl(self.marionette, self._state_toggle_locator)
Example #18
0
 def _wifi_switch(self):
     return GaiaBinaryControl(self.marionette, self._wifi_enabled_checkbox_locator)
Example #19
0
 def _geolocation_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._enable_geolocation_checkbox_locator)
Example #20
0
 def tap_disallow_tracking(self):
     GaiaBinaryControl(self.marionette, self._disallow_tracking_radio_locator).enable()
Example #21
0
 def _tracking_protection_switch(self):
     return GaiaBinaryControl(
         self.marionette,
         self.root_element.find_element(
             *self._tracking_protection_toggle_locator))
Example #22
0
 def _wifi_tracking_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._wifi_data_tracking_locator)
Example #23
0
 def wait_for_enable_switch_to_be_turned_on(self):
     Wait(self.marionette, timeout=60).until(
         expected.element_displayed(*self._checkbox_locator))
     Wait(self.marionette).until(lambda m: GaiaBinaryControl(
         m, self._checkbox_locator).is_checked is True)
Example #24
0
 def enable_data_alert_switch(self):
     GaiaBinaryControl(self.marionette,
                       self._data_alert_switch_locator).enable()
Example #25
0
 def tap_do_not_have_pref_on_tracking(self):
     GaiaBinaryControl(self.marionette, self._do_not_have_pref_on_tracking_radio_locator).enable()
Example #26
0
 def is_data_alert_switch_checked(self):
     return GaiaBinaryControl(self.marionette,
                              self._data_alert_switch_locator).is_checked
Example #27
0
 def _order_by_last_name_switch(self):
     return GaiaBinaryControl(self.marionette,
                              self._order_by_last_name_switch_locator)
Example #28
0
 def _data_alert_switch(self):
     return GaiaBinaryControl(self.marionette, self._data_alert_switch_locator)