Element Exists selector, Excel file name truncation

EDIT: When using selectors and Element Exists to detect if Excel windows are open, sometimes the file name in the window name is sometimes truncated because the file name is too long… how do I construct a reliable selector in this case? Also what if there are file names which are similar but difference cannot be detected because of truncation?

It’a a very very good question. I’ve never manage to test it but I think you should use in that way UI Explorer for the selector and try to find out other element which can be related to particular excel document. If not then you could add to your workflow a part when excel file will be renamed prior to get data from it.