Added preference for DOM IDs in xpaths, if present