Added special case for the title field in TextWidget's getCssOrXpath() as it follows different rules.