Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing window titles
09-25-2009, 12:10 AM
Post: #1
Changing window titles

I have a windows application that keeps changing its name. Though all the rest of the properties are the same the the text property and regexpwndtitle property keeps changing I have tried a few things with the regualr expressions but nothing seems to work.

If a project is open in the application the then Text property says Project-Control Designer and the regexpwndtitle says Project. Every new indow requires a new obect in the repository. I have been trying to add regualr expressions to the These two properties such that I can use the same object for any project. I havent had any success.

What can I Do?
(Project is a variable that keeps changing)

regexpwndtitle = Project
Text = Project-Control Designer
Find all posts by this user
Quote this message in a reply
09-25-2009, 11:27 AM
Post: #2
RE: Changing window titles
can you tell us what have you tried with regular expression?
have you tried setting this
for regexpwndtitle = .*
Text = .* -Control Designer (if Control designer is static)
does this work?

Thanks,
~Saket Kumar
[Linkedin][pdf Api for QTP]
It's so hard when I have to, and so easy when I want to...
Find all posts by this user
Quote this message in a reply
10-21-2009, 09:21 PM
Post: #3
RE: Changing window titles
You could also use descriptive programming to identify other properties of the object you are looking for and totally ignore the "name" property. I have found this can cause optimization issues but if you order your selected properties correctly it can help to alleviate this problem. Just one more possible solution.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  java window titles & regular expressions jotdog2 1 849 02-13-2012 10:55 PM
Last Post: madsenfr

Forum Jump:


User(s) browsing this thread: 1 Guest(s)