It sounds like there's some js running after the page is fully loaded, but you haven't interacted with the page yet. If there's something inserting a DOM element in that gray area, then the element wouldn't be matched correctly. Perhaps try scrolling the page if possible. I haven't used selenium in a while so I'm not sure how to solve the exact problem you're seeing.
this post was submitted on 02 Nov 2023
6 points (100.0% liked)
Selenium Web Browser Automation
101 readers
4 users here now
Users forum for selenium browser testing. Do not advertise here.
founded 2 years ago
MODERATORS
Oh, wow, that worked. Thanks!