When I execute below command I'm getting more than 3000 items to my elm variable. Then I have to pass them in to a string array.
The below list contain so many blank data and there are some items which contains characters. But I need only elements with numbers. So is there any problematical way to remove all the blank elements and the elements with characters.
IList<IWebElement> elm = driver.FindElements(By.ClassName("spy14"));
I was trying with a for each loop, but I stucked on some place.
elm = elm.Where(x => !x.Text.Contains(" ")).ToArray();
With @PDHide's help I was able to get this thing done with above code.