Edit: I just realized you're in a web browser instead of Windows Explorer but you'd still use the exact same process as below, you'd just select a folder in your UI and adjust it similar to how I've outlined the below.
If you add a UI Element and select one of the folders in Windows Explorer (make sure to select the list item as you hover over the folders), you'll see similar parent and item selectors to the below (I have a folder called 2022 with child folders inside for each month and I've selected January).
Parent (Windows Explorer):
:desktop > window[Name="2022"][Process="explorer"]
Item (one of the folders):
> pane[Class="ShellTabWindowClass"][Name="2022"] > pane[Class="DUIViewWndClassName"] > pane[Class="DUIListView"][Id="listview"] > list[Class="UIItemsView"][Name="Items View"] > listitem[Class="UIItem"][Name="January"]
The key to solving your particular dilemma is that you have more text after the name of the month, so your selector needs to be a "starts with" on the Name, instead of being an "equals". You do that by using ^= instead of = on the Name selector.
This selector would select any folder that starts with January, regardless of what comes after it:
> pane[Class="ShellTabWindowClass"][Name="2022"] > pane[Class="DUIViewWndClassName"] > pane[Class="DUIListView"][Id="listview"] > list[Class="UIItemsView"][Name="Items View"] > listitem[Class="UIItem"][Name^="January"]
The next thing you need to do is just to take these findings and insert a variable into your actual selector, that you're going to set before you call it, to the month you want to pick, so that you get the folder you need.
Example Variable:
%MonthToSelect% ('January')
Example Selector: (you're going to edit the UI element you picked earlier when you clicked on a list item and you're going to just edit its value)
> pane[Class="ShellTabWindowClass"][Name="2022"] > pane[Class="DUIViewWndClassName"] > pane[Class="DUIListView"][Id="listview"] > list[Class="UIItemsView"][Name="Items View"] > listitem[Class="UIItem"][Name^="%MonthToSelect%"]
Hope this helped!
Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.
Cheers,
Matt