ehaartmans
12 years agoOccasional Contributor
Using regular expressions in namemapping
Hi there,
I have a namemapping for an application/main screen which has a dynamic title bar.
I use the AWTComponentAccessibleName property in the namemapping.
The layout of title bar is always something like this:
ABC somename: username
After username there are a lot of spaces.
somename and username can be different in the same application
I cannot use a wildcard like this: ABC *: * because other titles in the same title bar have a title like this:
ABC somename: username Path: AB
Again there are a lot spaces after AB
How can I define the main screen in the namemapping with regular expressions?
Or doesn't namemapping support regular expressions other than *?
I have a namemapping for an application/main screen which has a dynamic title bar.
I use the AWTComponentAccessibleName property in the namemapping.
The layout of title bar is always something like this:
ABC somename: username
After username there are a lot of spaces.
somename and username can be different in the same application
I cannot use a wildcard like this: ABC *: * because other titles in the same title bar have a title like this:
ABC somename: username Path: AB
Again there are a lot spaces after AB
How can I define the main screen in the namemapping with regular expressions?
Or doesn't namemapping support regular expressions other than *?