The index of the element at xPath.
xPath
FormIndex? indexOf(String xPath) => _indexOf(expandSingle(getRef(xPath)));