cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Using regular expressions window's name

apineirogayo
Newcomer

Hi,

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

Thank you!

Best regards

2 REPLIES 2

yuriy_look
Inactive

@Antón G.

Hi Antón,

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.

Thank you,

Yuriy

Hi, thank you so much!