Jump to content

get WinTitle passing a substring


MVROD
 Share

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
Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...