def _is_element_visible(self, *locator):
    try:
        return self._get_element(*locator).is_displayed()
    except (Exceptions.NoSuchElementException, Exceptions.ElementNotVisibleException):
        return False
def _is_element_visible(self, *locator):
    try:
        return self._get_element(*locator).is_displayed()
    except (Exceptions.NoSuchElementException, Exceptions.ElementNotVisibleException):
        return False