How to locate an element by UiSelector using Appium Inspector GUI?

Hi,

I’m trying to locate an element by android uiautomator on Appium inspector but can not get the element. I tried following these ways:

"new UiSelector().text(\"element-text\")"
new UiSelector().text(\"element-text\")
new UiSelector().text(element-text)
"new UiSelector().text(element-text)"

On wd script when I use:

driver.elementByAndroidUIAutomator("new UiSelector().text(\"element-text\")")

element can be found.
Any suggestion? Thanks