def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match( interactive_constants.INTERACTIVE_SKY_LOGO_SD) debug('[MY MESSAGES] Logo visible: {0}'.format(logo_visible)) if logo_visible: title = find_text(self._frame, MM_TITLE_REGION) debug('[MY MESSAGES] Title found: {0}'.format(title)) title_visible = (title == sky_plus_strings.MY_MESSAGES) subtitle = find_text(self._frame, MM_SUBTITLE_REGION) debug('[MY MESSAGES] Subtitle found: {0}'.format(subtitle)) subtitle_visible = (subtitle == sky_plus_strings.MM_SUBTITLE) pin_visible = stbt.match(MM_PIN_ENTRY) return title_visible and subtitle_visible and pin_visible return False
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match(mysky_constants.SKY_TOP_LOGO, region=MY_SKY_REGION) if logo_visible: light_is_green = ui_ready(self._frame) text = sky_plus_utils.find_text(self._frame, MYA_TITLE_REGION) return light_is_green and text == sky_plus_strings.MANAGE_YOUR_ACCOUNT return False
def __init__(self, frame, region): self.frame = frame self.region = region self.text_region = get_bottom_text_region(region) self.image_region = get_default_image_region(region) debug('REGION: {0}'.format(self.text_region)) if self.text_region is not None: self.text = sky_plus_utils.find_text(frame, self.text_region) self.selected = sky_plus_utils.match_color(frame, self.text_region, YELLOW_BACKGROUND_RGB)
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match(INTERACTIVE_SKY_LOGO) debug('[INTERACTIVE] Logo visible: {0}'.format(logo_visible)) if logo_visible: title = find_text(self._frame, TITLE_REGION) debug('[INTERACTIVE] Text found: {0}'.format(title)) title_visible = (title == sky_plus_strings.INTERACTIVE) return title_visible return False
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match(mysky_constants.SKY_TOP_LOGO, region=MY_SKY_REGION) if logo_visible: text = sky_plus_utils.find_text(self._frame, SS_DEV_MODE_TITLE_REGION) debug('[FIND VCN] Text found: {0}'.format(text)) title_visible = (text == sky_plus_strings.SS_VCN) return title_visible return False
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match(mysky_constants.SKY_TOP_LOGO, region=MY_SKY_REGION) debug('[SECRET_SCENE] Logo visible: {0}'.format(logo_visible)) if logo_visible: text = sky_plus_utils.find_text(self._frame, SECRET_SCENE_TITLE_REGION) debug('[SECRET_SCENE] Text found: {0}'.format(text)) title_visible = (text == sky_plus_strings.INTERACTIVE_MY_SKY) return title_visible return False
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match(mysky_constants.SKY_TOP_LOGO, region=MY_SKY_REGION) debug('[MYSKY MAIN] Logo visible: {0}'.format(logo_visible)) if logo_visible: text = sky_plus_utils.find_text(self._frame, MAIN_MENU_LOADING_REGION) debug('[MYSKY MAIN] Text found: {0}'.format(text)) loading_visible = (text == sky_plus_strings.LOADING) light_is_green = ui_ready(self._frame) return not loading_visible and light_is_green return False
def is_visible(self): # pylint: disable=stbt-frame-object-missing-frame logo_visible = stbt.match( interactive_constants.INTERACTIVE_SKY_LOGO_SD) debug('[MY ACCOUNT] Logo visible: {0}'.format(logo_visible)) if logo_visible: title = find_text(self._frame, MA_TITLE_REGION) debug('[MY ACCOUNT] Title found: {0}'.format(title)) title_visible = (title == sky_plus_strings.MY_ACCOUNT) background_visible = stbt.match(MA_BACKGROUND, region=MA_BACKGROUND_REGION) return title_visible and background_visible return False
def __init__(self, image, region): self.image = image self.text = find_text(image, region) self.selected = match_color(image, region, YELLOW_BACKGROUND_RGB)
def title(self): """Get greeting from top of the menu""" text = sky_plus_utils.find_text(self._frame, MYA_TITLE_REGION) return text
def title(self): """Get title from top of the menu""" text = sky_plus_utils.find_text(self._frame, SS_DEV_MODE_TITLE_REGION) return text