Categories
Development

5 Best XPath Cheat Sheets and Quick References

I always love a good cheat sheet hanging on my corkboard when I’m working, and XPath is one of the fields where I often refer to it. If you’re looking for a good XPath cheat sheet you will probably find something useful in this post. 1. XPath, CSS, DOM, Selenium Locators This is a nice […]

XPath Cheat Sheets I always love a good cheat sheet hanging on my corkboard when I’m working, and XPath is one of the fields where I often refer to it. If you’re looking for a good XPath cheat sheet you will probably find something useful in this post.

1. XPath, CSS, DOM, Selenium Locators

This is a nice wallchart from Rosetta Stone and Cookbook that covers such popular technologies as XPath, CSS and DOM in the sense of locator syntax. There are two charts here. The first one is organized like an XPath Cookbook with plenty of recipes:
XPath CSS DOM Cook Book
and the other one is more like an XPath Reference Book with all the locators organized by their categories:
XPath CSS DOM Reference Book

2. XPath 1.0 Quick Reference

This quick reference from deepX contains information about XPath Axes and Functions. It takes two full sheets and offers short descriptions for every element with references to W3C recommendation paragraphs:
XPath 1.0 Quick Reference

3. XPath 2.0 Quick Reference

This is the only XPath 2.0 Cheat Sheet from D Vint Productions in this post. Like a previous chart it is also quite scientific, having  strict definitions and W3C references:
XPath 2.0 Cheat Sheet

4. XSLT 1.0 & XPath 1.0 Quick Reference

This XSLT and XPath Quick Reference from Mulberry Technologies is supposed to be printed on both sides of the page and be folded four times. It gives a short list of functions, operators, node and object types and other elements of XPath and XSLT. Unlike the deepX’s chart, it gives just short clues without any descriptions (but with a bigger font):
XSLT 1.0 & XPath 1.0 Quick Reference

5. XPather Cheatsheet

The last cheat sheet, which is from Viktor Zigo, is not in PDF format, but I really like its simplicity. So, if you’re okay with an online cheat sheet, you can visit http://xpath.alephzarro.com/content/cheatsheet.html.

Disclaimer: I had nothing to do with this document; I simply like it.

3 replies on “5 Best XPath Cheat Sheets and Quick References”

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.