def event_UIA_systemAlert(self, obj, nextHandler):
if isinstance(obj, UIA):
if obj.role == controlTypes.ROLE_ALERT and obj.UIAElement.cachedAutomationID == "a11y-announcements-message":
# Mick Curran says use last child in case a series of live texts are part of this control.
ui.message(obj.lastChild.name)
nextHandler()
评论列表
文章目录