Hello
I’m checking a website, I have a process that I want to detect if a certain element appears on the screen, the problem is that there are two layers on this screen, so it always detects it.
This is the main screen, I want to identify the following part:
If I click on the next arrow in the next picture, the basket opens and hides the first picture, and actually even in this situation what was behind is always recognized
What I want is to identify the first part I marked only if it is directly displayed on the screen and not always if the basket is open above it, is there a way?
- This is the picture when the basket open (Hides the first image)


