selenium assert text on page fails code example
Example: selenium assert text on page python
body_text = driver.find_element_by_tag_name('body').text
assert 'my text' in body_text
body_text = driver.find_element_by_tag_name('body').text
assert 'my text' in body_text