public AxisElement(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name) { _xpathAxis = xpathAxis; _nodeType = nodeType; _prefix = prefix; _name = name; }
/// <summary> /// /// </summary> /// <param name="NodeName">Empty for nodes without name (comment, namespace...)</param> /// <param name="NodeValue"></param> /// <param name="Counter">For xpath. If less then 0 no showed in xpath</param> /// <param name="NodeType"></param> public NodeExtentionData(string NodeName, string NodeValue, int Counter, System.Xml.XPath.XPathNodeType NodeType) { this.NodeName = NodeName; this.NodeValue = NodeValue; this.Counter = Counter; this.NodeType = NodeType; }
public object Axis(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name) { if (xpathAxis == XPathAxis.Root) { return(Root); } if (nodeType == System.Xml.XPath.XPathNodeType.Element) { if (name != "ui") { throw new NotSupportedException($"{name} element is not supported."); } } if (xpathAxis == XPathAxis.Descendant) { FindElementFunc func = FindDescendant; return(func); } if (xpathAxis == XPathAxis.DescendantOrSelf) { FindElementFunc func = FindDescendantOrSelf; return(func); } if (xpathAxis == XPathAxis.FollowingSibling) { FindElementFunc func = FindFollowingSibling; return(func); } if (xpathAxis == XPathAxis.Child) { FindElementFunc func = FindChild; return(func); } if (xpathAxis == XPathAxis.Attribute) { string lowerCaseName = name.ToLower(); if (lowerCaseName == "id") { return(AutomationElement.AutomationIdProperty); } if (lowerCaseName == "name") { return(AutomationElement.NameProperty); } if (lowerCaseName == "class") { return(AutomationElement.ClassNameProperty); } if (lowerCaseName == "type") { return(UiAutomationElement.ProgrammaticName); } if (lowerCaseName == "typeid") { return(UiAutomationElement.Id); } throw new NotSupportedException($"Attribute {name} is not supportet."); } return(null); }
public XElement Axis(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name) { return(new XElement(xpathAxis.ToString(), new XAttribute("nodeType", nodeType.ToString()), new XAttribute("prefix", prefix ?? "(null)"), new XAttribute("name", name ?? "(null)") )); }
public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants(System.Xml.XPath.XPathNodeType type, bool matchSelf) { throw null; }
public virtual System.Xml.XPath.XPathNodeIterator SelectChildren(System.Xml.XPath.XPathNodeType type) { throw null; }
public virtual System.Xml.XPath.XPathNodeIterator SelectAncestors(System.Xml.XPath.XPathNodeType type, bool matchSelf) { throw null; }
public virtual bool MoveToNext(System.Xml.XPath.XPathNodeType type) { throw null; }
public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type, System.Xml.XPath.XPathNavigator end) { throw null; }
public virtual System.Xml.XPath.XPathNodeIterator SelectChildren(System.Xml.XPath.XPathNodeType type) { return(default(System.Xml.XPath.XPathNodeIterator)); }
// Methods public void Create(System.Xml.XPath.XPathNavigator context, System.Xml.XPath.XPathNodeType nodeType) { }
public IXPathExpression Axis(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name) { return(new AxisElement(xpathAxis, nodeType, prefix, name)); }
public void StartTree(System.Xml.XPath.XPathNodeType rootType) { }
public IControlWalkerElement Axis(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name) { return(new AxisElement(xpathAxis, nodeType, prefix, name)); }
public XmlNavigatorFilter GetTypeFilter(System.Xml.XPath.XPathNodeType nodeType) { }
public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type, System.Xml.XPath.XPathNavigator end) { return(default(bool)); }
public virtual bool MoveToNext(System.Xml.XPath.XPathNodeType type) { return(default(bool)); }
public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type) { throw null; }
public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants(System.Xml.XPath.XPathNodeType type, bool matchSelf) { return(default(System.Xml.XPath.XPathNodeIterator)); }
/*private NodeExtentionData() * { * this.NodeName = ""; * this.NodeValue = ""; * this.Counter = 0; * this.NodeType = System.Xml.XPath.XPathNodeType.All; * }*/ public NodeExtentionData(string NodeName, string NodeValue, System.Xml.XPath.XPathNodeType NodeType) : this(NodeName, NodeValue, -1, NodeType) { }