I am working with a thick application called BMC’s ControlM client. I need to open up an interface, then extract the status text highlighted in red:
This is the corresponding selector:
<ctrl automationid='PropertiesTabItem' /> <ctrl name='Ended Not OK' role='text' />
However, this does not work when the status is named anything else. I tried to make the
name equal to a wildcard
<ctrl automationid='PropertiesTabItem' /> <ctrl name='*' role='text' />
But this gives undesired results. When I use this wildcard my text gets back
Synopsis, which is the text at the top of the current tab.
The UiExplorer Tree looks something like this:
I have tried using the ‘scroll bar’ attributes to try to further differentiate the Status text from the other text’s but those only return ‘0’. I need to find a way to be able to read the “Ended Not OK” portion of the text, but this status will change to several other words. Any help is appreciated. Thanks!