Created
June 28, 2019 14:58
-
-
Save tomhodgins/959285f07933c87b6be97e3eaa631fe1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all([ | |
import('https://unpkg.com/espath'), | |
import('https://unpkg.com/flatted@2.0.1/esm/index.js') | |
]).then(([espath, {stringify}]) => { | |
console.log( | |
espath.default( | |
JSON.parse(stringify(window)), | |
'//*[contains(text(), "25")]' | |
) | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment