01-11-2012, 09:00 PM
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:
If blFlagZ1="True" AND blFlagZ2="True" AND blFlagZ3="True" Then
Also, this code will execute
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?
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)
blFlagZ2 = .WebEdit("StartDate").Exist(0)
blFlagZ3 = .WebEdit("EndDate").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?