public ReadOnlyCollection <IWebElement> FindElements(By @by) { var elements = Enumerable .Cast <IWebElement>(driver.FindElements(@by).Select(e => SafeWebElement.Wrap(e, driver))).ToList(); return(new ReadOnlyCollection <IWebElement>(elements)); }
public IWebElement FindElement(By @by) => WebElementsPolicies.Current.Find.Execute(() => SafeWebElement.Wrap(driver.FindElement(@by), driver));