The idea is to wait for an alert to appear and get the text from that alert. Here is the selector for the Check App State:
Window: "<html app='chrome.exe' title='*Salesforce' />"
Fuzzy: "<webctrl aria-role='alertdialog' tag='DIV' type='' aaname='' />"
Here is the selector for the Get Text:
Window: "<html app='chrome.exe' title='*Salesforce' />"
Fuzzy: "<webctrl aria-role='alertdialog' tag='DIV' type='' aaname='' />"
Yet the Check App State gives this (which is correct as the alert is not currently displayed)
And the Get Text gives this: