Example #1
0
File: Search.cs Project: zyme/JDI
 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");
 }
Example #2
0
 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
         }
     }
Example #3
0
 public void FillLocatorTemplate(string name)
 {
     WebAvatar.ByLocator = Locator.FillByTemplate(name);
 }