im trying to get rid of xpaths also, but i wanna future proof it too, so i was using names, but that got depreciated, i have access to the source code, under the Accessibility view, i have Label, Hint, Identifier, now im assuming the Identifier relates to the id in appium. i put under that field 'button_id' and here is my code to click it, just assume everything else caps and driver are set up correctly bc it is. other ways work like the xpath.
@iOSFindBy(id = "button_id")
public IOSElement buttonClick
buttonClick.click()
but it doesnt work........