'Loading indicator must be present, but not visible'

def is_browser_on_page(self):

    loading_css = '#loading-indicator'
    courses_css = '.courses-listing'
    return (self.q(css=courses_css).visible and self.q(css=loading_css).present and (not self.q(css=loading_css).visible))
