'Returns the current state of the expand/collapse link'

@property
def expand_collapse_link_state(self):

    link = self.q(css=self.EXPAND_COLLAPSE_CSS)[0]
    if (not link.is_displayed()):
        return ExpandCollapseLinkState.MISSING
    elif ('collapse-all' in link.get_attribute('class')):
        return ExpandCollapseLinkState.COLLAPSE
    else:
        return ExpandCollapseLinkState.EXPAND
