Example #1
0
        internal IEnumerable <dynamic> GetCQHTMLElementCollection(HtmlSelector selector)
        {
            string parentSelectorValue = selector.selectorValue;
            string parentSelectorType  = Convert.ToString(selector.selectBy);

            return(DomService.GetCQHTMLElementCollection(parentSelectorValue, parentSelectorType));
        }
Example #2
0
 int GetLastPageFromSiteAction()
 {
     try
     {
         HtmlSelector selector = new HtmlSelector(lastPageSelector, SelectBy.CSS_SELECTOR);
         Element      element  = new Element(selector, AttributeType.TEXT);
         string       value    = browser.GetHTMLElementText(element);
         return(int.Parse(value));
     }
     catch (Exception)
     {
         return(1);
     }
 }
Example #3
0
 public Element(HtmlSelector selector, string value)
 {
     this.htmlSelector = selector;
     attributeValue    = value;
 }
Example #4
0
 public Element(HtmlSelector selector, AttributeType valueAttributeType)
 {
     this.htmlSelector  = selector;
     this.attributeType = valueAttributeType;
 }
Example #5
0
 public Element(HtmlSelector selector)
 {
     this.htmlSelector = selector;
 }