Solution: We can modify the properties of the temporary version of the object during the run session without affecting the permanent values in the object repository by adding a SetTOProperty method. The SetTOProperty method can be inserted from the Keyword view using step generator or inserted to the expert view.
How?
The regular expression checkbox needs to be selected for the specified object .
Either through the Object Repository or through the Object Properties window, the regular expression checkbox needs to be selected before running the test.
To go through the Object Repository:
1. Select Resources -> Object Repository.
2. Select the object that will be used with the SetTOProperty method.
3. Select the property that will be used with the SetTOProperty method.
4. Select the “Edit Constant Value Options” button, which is to the right of the Constant field.
5. Select the “Regular expression” checkbox.
6. Click
7. Click
After modifying the setting, you can specify the regular expression using the SetTOProperty method.
Example:
Window(”Notepad”).WinEditor(”Edit”).SetTOProperty “text”, “test.*”
Comments