How can i detect last object if i have 5 element with the same tag, clas etc. ?

How can i detect last object if i have 5 element with the same tag, clas etc. ?
Maybe exists any function like last or something like this?

WebUI.setText(findTestObject(‘Page_Faktura 24 - Tax Order/input_ember7900-input-article_’), ‘testy katalon’)