How to fix dynamic idx in selector

You should always try to avoid idx in selectors. It means the rest of your selector isn’t specific enough so it’s telling it “take the Nth item that matches” - fix your selector so the rest of it is specific and only returns the one UI element you need.