Zakaria Acharkiuser70192提出了一个问题：Testing NativeScript app with Appium，或许与您遇到的问题类似。
Part-1: Views are created using xml which must have attributes like
text,name,cssetc. These are accessible using methods like
By.name,By.cssSelectoretc.depending on the attributes provided during development.
Part-2: I believe since Appium was built on selenium initially and supports majority of its functionality. You can go ahead and try something similar to thisand you can provide action to your suite accessing the objects as in Part-1. To run the tests created would require similar efforts to run your main test script.