def element_not_equals_text(selenium_generics: SeleniumGenerics, locators: Locators, locator_path, text): actual_text = selenium_generics.get_text_from_element(locators.parse_and_get(locator_path)) assert_that(actual_text).is_not_equal_to(text)
def does_not_contain_text(selenium_generics: SeleniumGenerics, locators: Locators, locator_path, text): actual_text = selenium_generics.get_text_from_element(locators.parse_and_get(locator_path)) assert_that(actual_text).does_not_contain(text)
def contains_any_text(selenium_generics: SeleniumGenerics, locators: Locators, locator_path): actual_text = selenium_generics.get_text_from_element(locators.parse_and_get(locator_path)) assert_that(actual_text).matches(r'(.*?)')
def check_does_not_contain_same_text(selenium_generics: SeleniumGenerics, locators: Locators, locator_path1, locator_path2): actual_text1 = selenium_generics.get_text_from_element(locators.parse_and_get(locator_path1)) actual_text2 = selenium_generics.get_text_from_element(locators.parse_and_get(locator_path2)) assert_that(actual_text1).is_not_equal_to(actual_text2)