XPath

XPath: Selectors QTips

  • if there are more than one matches either
    • an array will be passed pack ( as in the case with JQuery  OR WebDriver getElements )
    • the first item matched will be returned ( as in the case with WebDriver getElement )
  • to specify only ONE element, use an array pointer [0], [1], etc
  • OR add more specificity to the XPath string
  • matching on element id will return ONE element ( as with //input[@id="LoginName"]
  •  

 

Tags
Subscribe to XPath