I need to define a paired list within my automation framework by passing two parameters, the DOM ID of the "Available" items list and the DOM ID of the "Selected" items list.
var pairedList: newPairedList("availableItemsListID", "selectedItemsListID");
In my current scenario, both availableItemsListID and selectedItemsListID have the same ID in the DOM - 'x-fieldset-bwrap'. I have attempted to differentiate between them by specifying that availableItemsListID is the first instance of the ID, and selectedItemsListID is the second:
var pairedList: newPairedList("/x-fieldset-bwrap/[0]", "/x-fieldset-bwrap/[1]");
While it successfully locates availableItemsList, it fails to find selectedItemsList. Any advice on how to resolve this issue would be greatly appreciated!
Thank you!