$x(path) returns an array of DOM elements that match the given XPath expression.
npm install wicked-good-xpath
import Vue from 'vue';
import VueXPath from 'VueXPath'
Vue.use(VueXPath)
// Within your Vue component
this.$x('//*[@id="app"]');
// [div#app]