Review the existing codebase to see how CSS selectors are implemented, likely in a selector helper module. Look for any related pull requests or comments that discuss xpath support. The issue asker is requesting a new feature, so implement an xpath selector method similar to the CSS selector method, adhering to the library's API design.