Get text of a dropdown value at specified index

I am trying to get text of a dropdown value similar to how we do in Java/Selenium:

for(int i=1; i<15; i++){

TestObject selWorkbasket = findTestObject(‘Application/Common/WorkBaskets/select_Workbasket’)

WebUI.selectOptionByIndex(selWorkbasket, i, FailureHandling.CONTINUE_ON_FAILURE)

List listWorkbaskets = WebUiBuiltInKeywords.findWebElements(selWorkbasket, 5)

String Workbasket = WebUI.getText(findTestObject(listWorkbaskets.get(i)))


This is failing at the last step at .get(i) with the following error:
[ERROR] - Test Cases/OutOfBox/Followed Cases/TC26 - My Workbaskets_FollowedCases FAILED because (of) java.lang.IndexOutOfBoundsException: Index: 1

What could be wrong?