Webscraping - find Locator related to a textsearch

Can you use XClickText as workaround? This allows to click any text without knowing the locator.