def value_containing(self, expected: str, ignore_case=False) -> ElementCondition: if ignore_case: warnings.warn('ignore_case syntax is experimental and might change in future', FutureWarning) return ElementCondition.raise_if_not_actual( f"has attribute '{name}' with value containing '{expected}'", attribute_value, predicate.includes(expected, ignore_case))
def value_containing(self, expected: str) -> Condition[Element]: return ElementCondition.raise_if_not_actual( f"has css property '{name}' with value containing '{expected}'", property_value, predicate.includes(expected), )
def value_containing(self, expected: str) -> Condition[SeleneElement]: return Condition.raise_if_not_actual( f"has attribute '{name}' with value containing '{expected}'", attribute_value, predicate.includes(expected))