I would like to know if we can use regutar expression working with name's window. For example:
JavaWindow("Application=JP2LAUNCHER.EXE Caption='Workbench PROD-Umgebung 4.6'").Attach
We would like to avoid re-write the script if new version comes (4.7, 4.8,...):
JavaWindow("Application=JP2LAUNCHER.EXE Caption='Workbench PROD-Umgebung*'").Attach
Answer by Yuriy L. ·
The Recorder does not support regular expression character string matching, but it does support wildcard character string matching, which means that the expression you’ve put as an example will work. You may want to take a look at https://community.dynatrace.com/community/display/ENTSYM125/Using+Variables+in+Test+Scripts and https://community.dynatrace.com/community/display/ENTSYM125/Agent+Recorder+FAQs and search for the word wildcard on these pages.
Using an URL in Enterprise scripting 1 Answer