Since the IAccessible
interface has only a limited number of properties the best solution is to cram any extra information into the Description
property (that's what they do at the company I work at, and our developers don't work quick and dirty :) ). To modify the return value of this property you have to implement the Iaccessible
interface on your control. Or, since you only want to modify the Description
property you only need to modify that property and leave the rest to the proxy (I'm not sure how this works exactly but there are tutorials for it on MSDN).
The SetPropertyValue
method in the UITestPropertyProvider
is for the UItestControl
s. By overwriting it you can modify the way CUIT interacts with the control during playback. For example, if you overwrite SetPropertyValue
for the Text property you can change the way CUIT types strings into the control.