https://mingredbestcheapprice.blogspot.com/2024/04/detect-user-visible-elementsonly-in.html
Detect User Visible Elements(only In Viewport) By Xpath In Selenium, Python