Wrong element is selected using idx

When we give idx attribute as below

the tag selects the wrong li tag.

Ideal selection:

But it selects as follows(Some internal 6th li tag):

Similar issue: How to jump send second tag to prepare dynamic selectors - #5 by loginerror


Try to add AAName, Inner Text, At the last CSS selector to make it more dynamic to go to the correct tag