def element_located_to_be_selected(locator):
    """An expectation for the element to be located is selected.
    locator is a tuple of (by, path)"""
    def _predicate(driver):
        return driver.find_element(*locator).is_selected()

    return _predicate