I am trying to locate all elements from a search result page and put them in a list. First problem is to find all the elements. I have no problem finding a specific element:
driver.FindElement(By.CssSelector("#event_395634"));
OR:
driver.FindElement(By.Id("event_395634"));
But how do I find every element starting with "#event_" or "event_"?
And how do I put them in a list? Is this a start?:
List<IWebElement> eventList = new List<IWebElement>();
events = driver.FindElements(By.?("Magic code");
....and then what? Or am I way off? I intend to loop through the list at a later stage.