I'm testing a website with Pytest and SeleniumBase. I am on the top of a website page, and I would like to see if clicking on an element will scroll me down to the bottom of the page where I am meant to see certain text and elements.
I've tried the assert_text_visible, assert_element_visible, and is_text_visible. However, all of these check if the element is visible (vs invisible). They don't check if the user can see the element, as in, if it would be currently visible on the screen to me, as a human who doesn't know what the rest of the page contains. The only functions I've found return True also if I stay at the top of the page and the element isn't visible to the user. Which doesn't help me.
I've seen similar questions such as these:
[https://stackoverflow.com/questions/70510565/how-can-i-detect-if-a-word-is-present-on-a-chrome-page-using-selenium-python]
[https://stackoverflow.com/questions/70668876/how-to-check-if-text-is-visible-with-seleniumbase]
However, that's what I have now, and it's not what I want. I'd like to do something more like this question, only with Seleniumbase and Pytest.
Is this possible?