MVROD Posted January 26, 2009 Share Posted January 26, 2009 (edited) 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 January 26, 2009 by MVROD Link to comment Share on other sites More sharing options...
Authenticity Posted January 26, 2009 Share Posted January 26, 2009 Opt('WinTitleMatchMode', 2) Link to comment Share on other sites More sharing options...
Varian Posted January 26, 2009 Share Posted January 26, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now