Add getCssSelector, getXPathSelect, and JavaDoc

This change enables [By] class element selectors to be used is other contexts like JavaScript code execution.