Exemple #1
0
 public AxisElement(XPathAxis xpathAxis, System.Xml.XPath.XPathNodeType nodeType, string prefix, string name)
 {
     _xpathAxis = xpathAxis;
     _nodeType  = nodeType;
     _prefix    = prefix;
     _name      = name;
 }
Exemple #2
0
 /// <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;
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 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;
 }
Exemple #10
0
 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));
 }
Exemple #13
0
 public void StartTree(System.Xml.XPath.XPathNodeType rootType)
 {
 }
Exemple #14
0
 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)
 {
 }
Exemple #16
0
 public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type, System.Xml.XPath.XPathNavigator end)
 {
     return(default(bool));
 }
Exemple #17
0
 public virtual bool MoveToNext(System.Xml.XPath.XPathNodeType type)
 {
     return(default(bool));
 }
 public virtual bool MoveToFollowing(System.Xml.XPath.XPathNodeType type)
 {
     throw null;
 }
Exemple #19
0
 public virtual System.Xml.XPath.XPathNodeIterator SelectDescendants(System.Xml.XPath.XPathNodeType type, bool matchSelf)
 {
     return(default(System.Xml.XPath.XPathNodeIterator));
 }
Exemple #20
0
 /*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)
 {
 }