I just looked in game and you should be using the white highlighted numbers. An easy way to check is to open the widget debugger, query the suspect widget, and if it has the action you want you found it. In this case the white widget has the action "Switch." Also the subchild is the world number
Use world.interact("Switch") because it has 2 actions, add favorite being the second