Work with the "Select Element"

The attached script implements the same functionality as native automation code. You can download the linked function: select_by_index.mcr