06-05-2012, 04:57 AM
Hello Guys.
Please I made the following script but after checking syntax in QTP it showed me the errors but I can not sort them out. please could you help me?
Please I will appreciate any help.
Regards,
Please I made the following script but after checking syntax in QTP it showed me the errors but I can not sort them out. please could you help me?
Code:
If Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("DAACC3303A").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("Assigned").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("Cisco - WS-C2960...").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("Created on 04/24/2012").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").Link("BMW USA").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("Terremark Networ...").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("SWITCH48X48_2").Exist(2)
And Browser("CMDB - InstanceMainDisplay").Page("CMDB - InstanceMainDisplay").WebElement("Last Modified on 05/04/2012").Exist(2)
Then
a="Hello World"
MsgBox a
Else
b="Failure"
MsgBox b
End If
MsgBox a
Regards,