on xenial help sign in
Remove unused methods
commit9ec128426e82c7dc8c9386d1b5cfa7309503513c authorJosh Arenson <joshua.arenson@canonical.com> dateThu 21 May 2015, 11:46 (11 years ago) parentb3b7b00
1 file changed−16
tests/autopilot/unity8/settings_wizard/__init__.py−16
tests/autopilot/unity8/settings_wizard/__init__.py−16
@@ -385,15 +385,6 @@ class WifiConnectPage(UbuntuUIToolkitCustomProxyObjectBase):
385385 return self.wait_select_single(
386386 'StackButton', text='Continue', visible='True')
387387
388− def _get_next_button(self):
389− # Since the phone state is unknown, this returns skip||continue
390− # depending on which one is visible
391− buttons = self.select_many('StackButton')
392− for button in buttons:
393− if button.text == "Continue" or button.text == "Skip":
394− return button
395− raise introspection.dbus.StateNotFoundError
396−
397388 def is_any_network_checked(self):
398389 networks = self._get_all_networks()
399390 for network in networks:
@@ -414,13 +405,6 @@ class WifiConnectPage(UbuntuUIToolkitCustomProxyObjectBase):
414405 self.pointing_device.click_object(self._get_network_checkbox(ssid))
415406 return PasswordNotification(self._get_notification(unity))
416407
417− @autopilot.logging.log_action(logger.info)
418− def advance_page(self):
419− """ Advance the wizard regardless of weather or not
420− continue||skip button is present """
421− self.pointing_device.click_object(self._get_next_button())
422− return get_wizard(self).get_reporting_page()
423−
424408 @autopilot.logging.log_action(logger.info)
425409 def back(self):
426410 self.pointing_device.click_object(self._get_back_button())