コード例 #1
0
ファイル: Search.cs プロジェクト: 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");
 }
コード例 #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
         }
     }
コード例 #3
0
ファイル: WebBaseElement.cs プロジェクト: vepam/JDI
 public void FillLocatorTemplate(string name)
 {
     WebAvatar.ByLocator = Locator.FillByTemplate(name);
 }