Translate base css loc into xpath