'Check if we\'re on the team membership page for a particular team.'

def is_browser_on_page(self):

    self.wait_for_ajax()
    if self.q(css='.edit-members').present:
        return True
    empty_query = self.q(css='.teams-main>.page-content>p').first
    return ((len(empty_query.results) > 0) and (empty_query[0].text == 'This    team    does    not    have    any    members.'))
