And here is the code how I'm accessing the button in my test case
UiObject facebookButton = mDevice.findObject(new UiSelector().resourceId("login_button_facebook"));
Its failing to find the button saying :
android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[RESOURCE_ID=login_button_facebook]
at android.support.test.uiautomator.UiObject.click(UiObject.java:416)
Please let me know if I'm doing it wrong.
The documentation has not much detail about how to use it.
I'm trying to get the facebook Login button in UIautomator but its failing to find the button given the id of the button
And here is the code how I'm accessing the button in my test case
UiObject facebookButton = mDevice.findObject(new UiSelector().resourceId("login_button_facebook"));
Its failing to find the button saying :
Please let me know if I'm doing it wrong. The documentation has not much detail about how to use it.