in uiexplorer select active accessibility
this will produce a better selector. e.g. account field row 1 =

account field row 2 =

Now you can just replace the idx value with counter.toString like this
"<wnd app='chrome.exe' cls='Chrome_WidgetWin_1' title='MYOB - Invoice - Google Chrome' /><ctrl name='MYOB - Invoice' role='document' /><ctrl name='Account' role='editable text' idx='"+counter.toString+"' />"
Note: the above works for all the fields except the “Description” field because the idx for description field row 1 = 14 for some reason…, for descrption field you might need a custom counter e.g row 1 = 14, row 2 = 17 and so on…
description field row 1 =

descrption row 2
