If "only" then... - 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: If "only" then... (/Thread-If-only-then) |
If "only" then... - mv8167 - 01-11-2012 Hello, I have code that searches for WebElemnts, etc to determine which dialog box i have found. However, sometimes I want my If to look if only a few specific elements, etc are found. Currently, my code is execiuted if all three of these are found: Code: blFlagZ1 = .WebTable("Image Access").Exist(0) If blFlagZ1="True" AND blFlagZ2="True" AND blFlagZ3="True" Then Also, this code will execute Code: If blFlagZ2="True" AND blFlagZ3="True" Then Some times only these two elements (blFlagZ2="True" AND blFlagZ3="True") are on the dialog box are there but since most all of my dialog boxes have these two elements, the If is always True. How can i code If "only" blFlagZ2="True" AND blFlagZ3="True" then ??? Any thoughts, ideas suggestions? |