@staticmethod
def is_valid(_by='', path=None):
    """Returns true if the selenium selector is valid

        :param str _by: Selenium By locator
        :param str path: Locator value
        :return: True, if the selenium selector is valid
        :rtype: bool
        """
    return True if _by in ('class name', 'css selector', 'id', 'link text',
        'name', 'partial link text', 'tag name', 'xpath') and path else False
