Application Title Bar Changes

Class library usage, coding and language questions.
j.early
Posts: 32
Joined: Fri Jun 15, 2012 12:14 pm

Application Title Bar Changes

Post by j.early » Tue Jul 24, 2012 4:36 pm

Hi all,

our application places the name of the current open file in its Title Bar.
For example, with no file open, the value of the title bar is:
"No Data Set - Imaris x64"

When a image file is opened, it is listed as:
"HeLaCell.ims - (name not specified) - Imaris x64"
or
"CellDemoMembrane3D.ims - CellDemoMembrane3D - Imaris x64"

Now, I don't really want my repo saving this "titlebar" information as part of the XPath of the object itself, as it changes for every image file, but I want to be able to run the same script, without any issues and get the same result, not dependent on the image.

I have tried to map all the names in a excel file, bind them to a variable and then use them depented on the image under test but it was a no go.

Am guessing this will require user code if there no easy way of doing it from within the UI.

Thanks in advance for taking the time.
Regards
J

User avatar
IanF
Posts: 60
Joined: Thu May 24, 2012 12:37 am
Location: Brisbane, Australia
Contact:

Re: Application Title Bar Changes

Post by IanF » Wed Jul 25, 2012 12:26 am

Have you tried making the first part of the title a regular expression?
Ian Fraser

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Application Title Bar Changes

Post by artur_gadomski » Wed Jul 25, 2012 7:39 am

Or use different attribute in you rxpath. Maybe processName?

j.early
Posts: 32
Joined: Fri Jun 15, 2012 12:14 pm

Re: Application Title Bar Changes

Post by j.early » Thu Jul 26, 2012 12:16 pm

different attribute did the trick fellas,

cheers