added method to convert CSS selectors into XPath expressions