Dynamic objects on webpages often have properties like names and IDs that change each time the page is accessed. This can cause test cases to fail when trying to locate objects. To handle dynamic objects, the 'Is Regex' feature can be used. By making the object's name property a regular expression instead of an exact value, it will match the object even if the name changes between test runs. For example, setting an object's name to 'ctl00$ContentPane$ctl00$Name' as a regex will locate it regardless of the specific numbers added after 'Name' during each page load. Checking the 'Is Regex' box for the name property tells OpKey to use regular expressions matching for that property.
Related topics: