private Clickable GetElement(string name) { if (Select != null) { return(Copy(Select, Locator.FillByTemplate(name))); } throw Exception("Select locator not specified for search. Use accordance constructor"); }
protected IWebElement GetWebElement(string name) { if (!HasLocator && AllLabels == null) { throw Exception("Can't get option. No optionsNamesLocator and allLabelsLocator found"); } if (Locator.ToString().Contains("{0}")) { return new GetElementModule { ByLocator = Locator.FillByTemplate(name), Element = this } }
public void FillLocatorTemplate(string name) { WebAvatar.ByLocator = Locator.FillByTemplate(name); }