public T this[int index] { get { InitCollection(); var webElement = WebElementFactory.Create <T>(this, Locator, index); webElement.SetNativeElement(_nativeElements[index]); return(webElement); } }
public IEnumerator <T> GetEnumerator() { InitCollection(); for (var i = 0; i < _nativeElements.Length; i++) { var webElement = WebElementFactory.Create <T>(this, Locator, i); webElement.SetNativeElement(_nativeElements[i]); yield return(webElement); } }
public T Find <T>(Locators.By by, string locator) where T : IElement, new() => WebElementFactory.Create <T>(this, new Locator(by, locator));
public T Find <T>(Locator locator) where T : IElement, new() => WebElementFactory.Create <T>(this, locator);