internal IEnumerable <dynamic> GetCQHTMLElementCollection(HtmlSelector selector) { string parentSelectorValue = selector.selectorValue; string parentSelectorType = Convert.ToString(selector.selectBy); return(DomService.GetCQHTMLElementCollection(parentSelectorValue, parentSelectorType)); }
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); } }
public Element(HtmlSelector selector, string value) { this.htmlSelector = selector; attributeValue = value; }
public Element(HtmlSelector selector, AttributeType valueAttributeType) { this.htmlSelector = selector; this.attributeType = valueAttributeType; }
public Element(HtmlSelector selector) { this.htmlSelector = selector; }