Skip to content

Instantly share code, notes, and snippets.

@yesil
Created December 10, 2012 16:34
Show Gist options
  • Save yesil/4251660 to your computer and use it in GitHub Desktop.
Save yesil/4251660 to your computer and use it in GitHub Desktop.
How to xpath in chrome developer console
var el = document.evaluate("//ul[1][@class='some_class_name']/li[2]/a",document, null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)
el.snapshotItem()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment