'Cohorts management exists under one class; however, render time can be longer because of sub-classes
that must be rendered beneath it. To determine if the browser is on the cohorts management page (and
allow for it to fully-render), we need to consider three different states of the page:
* When no cohorts have been added yet
* When a new cohort is being added (a confirmation state)
* When cohorts exist (the traditional management page)'

def is_browser_on_page(self):

    cohorts_warning_title = '.message-warning    .message-title'
    if self.q(css=cohorts_warning_title).visible:
        return (self.q(css='.message-title').text[0] == u'You    currently    have    no    cohorts    configured')
    return (self.q(css='.cohorts-state-section').visible or self.q(css='.new-cohort-form').visible)
