I’m fairly new with UiPath and I’m having some issues with manipulating some buttons on a webpage - the search/selection bar (“select2-selection__rendered”) has LI classes for each button (“select2-selection__choice”), and each button has a span class (“×”) which will remove that selection.
What I’m trying to do is get the name of each button within the selection bar (ie. “Non KAM” and “School”) and if it doesn’t exist within an array of pre-determined values, then click on the × to remove the button. I have tried using Get Children with FIND_DESCENDANTS and then trying to do a For Each based on the UiElement, but I can’t seem to scope the selector correctly - I’m not sure if that’s even the correct way of doing this though.
Any help would be appreciated!