Better way of selecting between css and xpath.
Closes #9