How to click on Button which does not have any resource id & clickable='False'

Hi I am trying to automate React Native application & I want to click on Button which does not have any Resource ID and content-desc and button is clickable=‘False’

Probably, if it’s not clickable, then you won’t be able to click. However you can get the attributes and play around.

if its showing you the index then you can use the customised xpath like “//android.widget.TextView[@text=‘OK’]”

it should work!!

Yes but it’s not feasible for me everytime to get ‘Text’ from xpath.