'Check if the view live button of textbook is working fine.'

def is_view_live_link_worked(self):

    try:
        self.wait_for((lambda : (len(self.q(css='.textbook    a.view').attrs('href')) > 0)), 'href    value    present')
        response = requests.get(self.q(css='.textbook    a.view').attrs('href')[0])
    except requests.exceptions.ConnectionError:
        return False
    return (response.status_code == 200)
