Same resource id

Hello guys. Im new to Appium. I’m working on python. I have same resource ıd and same class name with two button. the only difference is index. What should I do? Please help.

two (three) ways:

  1. search by elements!. so buttons are:
// Java
el.get(0) // first button
el.get(1) // second button
  1. use precise search. Android UiSelector with index. iOS use class chain strategy with [0] and [1] (
  2. ask developer to make different ids :slight_smile: