Micro Focus QTP (UFT) Forums
SwfToolbar and ItemExists with costant or directly string - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SwfToolbar and ItemExists with costant or directly string (/Thread-SwfToolbar-and-ItemExists-with-costant-or-directly-string)



SwfToolbar and ItemExists with costant or directly string - felino - 11-19-2015

Hi,
i not found where is the error in following lines:
Code:
str = datatable.Value("menuStrip1_File1","Step 1")
menuItemChildOfFile1 = SwfWindow("MicAnalytics").SwfToolbar("menuStrip1").ItemExists(str)
    
menuItemChildOfFile2 = SwfWindow("MicAnalytics").SwfToolbar("menuStrip1").ItemExists("File;New...")

In watch tool, I see that str is equals to "File;New..."

But:
- menuItemChildOfFile1 is equals to False
- menuItemChildOfFile2 is equals to True

Why?

Thanks.


RE: SwfToolbar and ItemExists with costant or directly string - felino - 11-25-2015

Hi,
I resolved.

My problem was about a cell format of my .xls file.

Thanks a lot!