04-03-2015, 09:21 PM
Hi, I am trying to validate if a webelement property exists on the page or not. But QTP always returns true and not going to Else part . Below is my code. pls help
************************************************************
************************************************************
QTP always true even in case if web element doesn't exist on the page.
************************************************************
Code:
BlnResult = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").Exist(0) Then
Msgbox "Success"
Else
Msgbox "Fail"
End If
QTP always true even in case if web element doesn't exist on the page.