You can change the value of the property in the repository using SetTOProperty
this changes the value for the current run but not for next runs of the test. Also it changes the value in the stored test object and not in the corresponding control in the application being tested (to get the current value from the application use GetROProperty
there is no SetROProperty
).
''# Change button "5" to point to "And"
Window("Calculator").WinButton("5").SetTOProperty "text", "[Aa]nd"
Window("Calculator").WinButton("5").Click
Note that while you can change the value you can't change whether it's a regular expression (the case above will only work if 5
's text
property is already defined to use regular expressions).
Alternately you can use descriptive programming.