Example #1
0
 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))
Example #2
0
 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),
     )
Example #3
0
 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))