Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

SwfToolbar and ItemExists with costant or directly string

$
0
0
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.

Viewing all articles
Browse latest Browse all 1653

Trending Articles