In an automated test I'm trying to perform against a Nexus 5X, this pop-up prompt (in this case, Magisk asking about granting superuser permission) will show up periodically throughout the test. To make it go away, I have to click a button on the pop-up. I've tried to get it to stop prompting me but it to no avail. The easiest solution seems to be to start a side thread in my test that checks the screen every second or so to see if the pop-up is present.
I thought that running
while the pop-up was on screen would give me the pixel location of the button to press. However, I scanned the resultant XML file and didn't see the text of the pop-up anywhere.
ERROR: null root node returned by UiTestAutomationBridge.
Is there another tool I can use the get the pop-up's location?