Well, I really don't. Feel I write the essay is very slag, not necessarily, everybody don't be misled by me, best not to see. I try to make sure it's all right to write.
First of all, these two got me dizzy.
1.//Regardless of hierarchy: relative path
2./Care Level: represents an absolute path to an element
3.//DDD/BBB: Mixed explanation? All the DDD elements under the BBB element, no matter where
4. * Indicates the element to which the path positioned before the asterisk is selected
*: Select all elements
/*/*/*/BBB: This, there are three elements of the BBB element
5. [NUMBER]: Do you want to select the number of elements in the path-qualified element? limited by [N]/[last ()] (n>=1)
/aaa/bbb[last ()]
6. @attribute Property Name
@id Select all ID attributes, not elements.
bbb[@id] This time I chose the element with the id attribute CSS selector is bbb[id]
BBB[@*] Select the BBB element with any attribute instead,//bbb[not (@*) selects the BBB with no attributes
bbb[@id = ' B1 ' Of course, you can select element with attribute values.
7. |: Merge path//CCC|//BBB all CCC.BBB elements OH
Well, these seem to me all the same. It should be more than simple ... Later, more, like to see who gave me this little rookie reply ~
"XPath learning" XPath will not, say what do you do for site automation testing?