public WebBaseElement(By byLocator) { Avatar = new GetElementModule(this) { ByLocator = !byLocator.GetByLocator().Equals("EMPTY") ? byLocator : null }; }
public T Get <T>(T element, GetElementModule avatar) where T : WebBaseElement { try { return(_locator == null ? null : (T)element.SetAvatar(avatar, _locator)); } catch { return(null); } }
public WebBaseElement(By byLocator = null, IWebElement webElement = null, List <IWebElement> webElements = null) { Invoker = new ActionInvoker(this); GetElementClass = new GetElementClass(this); Actions = new ElementsActions(this); WebAvatar = new GetElementModule(this, byLocator) { WebElement = webElement, WebElements = webElements }; }
public WebBaseElement(By byLocator = null, IWebElement webElement = null) { Invoker = new ActionInvoker(this); GetElementClass = new GetElementClass(this); Actions = new ElementsActions(this); _webElement = webElement; Avatar = new GetElementModule { Element = this, ByLocator = byLocator }; }
public WebBaseElement SetAvatar(GetElementModule avatar, By byLocator = null) { Avatar = byLocator != null ? new GetElementModule(this, avatar.Context) { ByLocator = byLocator, LocalElementSearchCriteria = avatar.LocalElementSearchCriteria, DriverName = avatar.DriverName } : avatar; return(this); }
protected IWebElement GetWebElement(string name) { if (!HasLocator && AllLabels == null) { throw Exception("Can't get option. No optionsNamesLocator and allLabelsLocator found"); } IList <IWebElement> els = null; if (Locator.ToString().Contains("%s")) { els = new GetElementModule { ByLocator = Locator.FillByTemplate(name), Element = this } }
public WebBaseElement(By byLocator = null, IWebElement webElement = null, List <IWebElement> webElements = null, WebBaseElement element = null) { Invoker = new ActionInvoker(this); GetElementClass = new GetElementClass(this); Actions = new ElementsActions(this); WebAvatar = new GetElementModule(this, byLocator) { WebElement = webElement, WebElements = webElements }; if (element != null) { WebAvatar.DriverName = element.WebAvatar.DriverName; Parent = element.Parent; } }
public GetElementType(By locator, WebBaseElement element) { _locator = locator; _avatar = element.WebAvatar; }
public WebBaseElement SetAvatar(GetElementModule avatar = null, By byLocator = null) { WebAvatar = (avatar ?? WebAvatar).Copy(byLocator); return(this); }
public BaseElement setAvatar(GetElementModule avatar) { this.avatar = avatar; return(this); }
public BaseElement setAvatar(By byLocator, GetElementModule avatar) { throw new NotImplementedException();//TODO setAvatar(By byLocator, GetElementModule avatar) }