Automation selecting option in dropdown based on user input

Ah yes that is what I am trying to do, but the main problem is that currently the automation is unable to find and interact with the option when I key in the year/ month I want. Furthermore, since the automation is going to be used in the future, it needs to be able to detect options that are not listed in the dropdown list (which is the 2nd main problem bugging me currently)

I have no idea what is causing the first problem to happen, dunno whether it is due to the dropdown closing immediately when I try to indicate its options on the screen