'Returns true if the element matching the specified selector is visible.
Args:
selector (str): The CSS selector that matches the desired element.
Returns:
bool: True if the element is visible.'

def is_element_visible(self, selector):

    query = self._find_within(selector)
    return (query.present and query.visible)
