Appium and Javascript

Hello
I’m new to appium, and I’ve set it all up in javascript and running it against our native ios and android apps.
I’m using yield for the process of fetching the elements but unable to do more than click, sendKeys and the basic touch functions.
How do I check attributes, for example a value of a button? I always get undefined for the different commands or status pending. Can you guys give me an example of how to right this?
Also when I run the appium-repl it doesn’t allow me to interact with the elements and always returns the driver array instead of the elements I’m trying to access.
Thank you so much!!!

Hello
Please help me with this issue
Also I wanted to know why the new iOS tests are so slow? I’m using XCUITEST