Dynamic Window Title. Problem in Identifying a Window where Window Title is Dynamic

Oct 17, 2012 at 11:29 AM

Problem in Identifying a Window where Window Title is Dynamic. My Application Title is As follows :

Inbox - <user name>

where <user name> is always changing in the window title.

Please explain how can i use regular Expression to identify Window in such cases.

 

Thanks,

Anand

Oct 17, 2012 at 12:06 PM

Anand

You could use something like this...
obj.Name.Contains("Inbox - ");
Which would always work for "Inbox - Mr Foo" (for example)
If <user name> is always changing and there is nothing consistent, then the above would work fine.
Ant