Widget->getCssOrXpath() should get its own selector using the getSelector() method, not simply read its property.