I am trying to get the value from a UILabel by doing a target.logElementTree()
but I am unable to see the value that the Label is actually set with.
It only shows the string that we set based on the accessibilityLabel
self.settlementDate.isAccessibilityElement = YES;
self.settlementDate.accessibilityLabel = @"DetailViewInCode_SettlementDate";
And in the target.logElementTree()
this is the value that I see i the log of Instruments-Automation
UIAStaticText: name:DetailViewInCode_SettlementDate value:DetailViewInCode_SettlementDate rect:{{260, 345}, {304, 21}}
UIALogger.logMessage("Target static:"+target.frontMostApp().mainWindow().staticTexts()["Activity_DetailedView_SettlementDate"].value());
And I can see the screenshot when I click on that entry
iOS 5.1 Simulator