Here what is the meaning of "." in the given xpath:
//a[contains(.,'Java SE 8')]
Here what is the meaning of "." in the given xpath:
//a[contains(.,'Java SE 8')]
The . is similar to the text()
attribute, but the . does not handle a case where another child element appears inside the element with the text "Java SE 8".
This thread explains in much more detail: XPath: difference between dot and text()