How to handle object xpath which is indicating different objects when we scroll?

I’m sure you don’t want a workaround, you want a working solution – there’s difference.

Your problem is twofold.

  1. That XPath is brittle. It’s too reliant on a lengthy document tree leading to the target element (the checkbox).

  2. When you scroll, I imagine more page data is received which modifies the document tree and breaks the XPath in #1… because it’s so brittle.

For anyone to help you here, you need to provide more information. To help yourself, make that XPath less brittle.

1 Like