As we have control of the markup for the app as well, instead of needing an ugly locator like this we should just give each link in the menu a unique ID. Can you please open a bug to do that, and then either you or I could take the bug and fix the markup?