Пример #1
0
    def _ensure_running_session(self):
        if self._running_session:
            logger.debug("Session already running.")
            return

        logger.debug("No running session, calling start session...")
        self._start_session()

        output_provider = AppOutputProvider(self._get_app_output_with_screenshot)
        self._match_window_task = MatchWindowTask(
            self._server_connector,
            self._running_session,
            self.configuration.match_timeout,
            eyes=self,
            app_output_provider=output_provider,
        )
Пример #2
0
def app_output_provider(image, app_output_with_screenshot):
    apo = AppOutputProvider(
        lambda region, last_screenshot, check_settings: app_output_with_screenshot
    )
    return apo