I’ve got 99 reasons, but I only want one…
And they are all in a IEnumerable<> type collection.
I’m not good at Linq, or Lamdas or anything like that.
I am slowly VERY slowly learning that stuff.
So I have a drop down list, that won’t work with select from list activity.
So I had to find the children of the dropdown list,
And sometimes there are lots of them. I don’t want my for each loop
To have to go through Everything. Is there a faster way to Query the IEnumerable List
For a string…
My List = ReasonList
String I’m searching for = adjReason
Item = UiElements in the ReasonList
I have it in a for each loop right now iterating through each child, and I’m saying, for each Item, get the innertext and if it contains adjReason, then continue on to click it.
I’m just wondering if I could use ReasonList.Select(Just the adjustment reason I want. ) Or something like that.