I'm writing a test to detect if the predictions portion of the android keyboard is disabled or not. Usually to detect these sorts of things, I would take an XML screenshot in UI Automator and then use the resource ID to detect it, but since the keyboard is recorded as an overlay, it doesn't show up.
I've used the resource ID to create strings and instantiate them like this:
UiObject incidentClick = uiDevice.findObject(new
UiSelector().resourceId(UIResourceStrings.This_Is_The_Resource_String));
However, that doesn't work since the keyboard does not have its own resource string.
I've thought about using (x,y) coordinates to check, but I'm not sure how I would implement that. Any idea on how to do something like this?