javascript/selenium-core/scripts/htmlutils.js
function isXPathValid(xpath, node) {
        var contextNode = mirror.getReflection();
        return (engine.setDocument(mirror.getReflection())
            .selectSingleNode(xpath, contextNode, namespaceResolver) === node);
    }
function isXPathValid(xpath, node) {
        var contextNode = mirror.getReflection();
        return (engine.setDocument(mirror.getReflection())
            .selectSingleNode(xpath, contextNode, namespaceResolver) === node);
    }
function isXPathValid ( xpath , node ) { var contextNode = mirror . getReflection ( ) ; return ( engine . setDocument ( mirror . getReflection ( ) ) . selectSingleNode ( xpath , contextNode , namespaceResolver ) === node ) ; }
Returns whether the given XPath evaluates to the given node in the
test document.
Returns whether the given XPath evaluates to the given node in the test document .