Locating element

I’m not able to locate the element in my application using appium. I’m using appium plugin in eclipse. I’ve tried with all the element locators available for the element. I’ve used this command :
driver.findElement(By.xpath("//*[@text=‘Email or phone’]")).click();
Do we have anything like java script in selenium which is used to find the element in the background?
Can anyone suggest any way to do that?