Jump to content
Sign in to follow this  

get WinTitle passing a substring

Recommended Posts


Hi !

I have a window which the first word of title changes, but the rest is equal.

I'd like to get the title of Eclipse IDE.

this word: "flextest" is already present on the second position.

How can I get the full title passing this word "flextest" using a wildcard?

For example, in QTP you have to use " .*flextest.* " it will ignore what is before and after the word "flextest".

Can somebody help me?

Thanks a lot!

Edited by MVROD

Share this post

Link to post
Share on other sites

You could use WinList('flextest') and get the return(s) on it.

You could also set WinTitleMatchMode to 2(partial match) and do a Winwait('flextest', ''), pass that handle to WinGetTitle to get your full title (if there is either only one such window with flextest in the title or if you are only interested in the last one opened)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.