Micro Focus QTP (UFT) Forums

Full Version: SwfToolbar and ItemExists with costant or directly string
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Hi,
I resolved.

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

Thanks a lot!