예제 #1
0
        protected EntityInfoProxy EntityInfoInternal(int?index)
        {
            var element = index == null ? Element :
                          this.Element.FindElements(By.CssSelector("[data-entity]")).ElementAt(index.Value);

            return(EntityInfoProxy.Parse(element.GetAttribute("data-entity")));
        }
예제 #2
0
        public EntityInfoProxy EntityInfo()
        {
            var attr = MainControl.Find().GetAttribute("data-main-entity");

            return(EntityInfoProxy.Parse(attr));
        }
예제 #3
0
 protected EntityInfoProxy?EntityInfoInternal(int?index) => EntityInfoProxy.Parse(EntityInfoString(index));
예제 #4
0
 public EntityInfoProxy EntityInfo()
 {
     return(EntityInfoProxy.Parse(this.Element.FindElement(By.CssSelector("div.sf-main-control")).GetAttribute("data-main-entity")) !);
 }