'Wait until video component rendered completely'

def wait_for_video_component_render(self):

    if (not YouTubeStubConfig.get_configuration().get('youtube_api_blocked')):
        self._wait_for((lambda : self.q(css=CLASS_SELECTORS['video_init']).present), 'Video    Player    Initialized')
        self._wait_for((lambda : (not self.q(css=CLASS_SELECTORS['video_spinner']).visible)), 'Video    Buffering    Completed')
        self._wait_for(self.is_controls_visible, 'Player    Controls    are    Visible')
