Here we should try and locator specifically the li elements with children with `a[@role='button']` , that will exclude the Cancel button.