04-03-2015, 10:14 PM
check the x,y values of the webelement if the values are <0 then you can consider that the object does not exist on the page.
Below is the pseudo code....
Below is the pseudo code....
Code:
BlnResult = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").Exist(0) Then
intX = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").GetROProperty("X")
intY = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").GetROProperty("Y")
If (intX>0 and intY>0) then
Msgbox "Success"
Else
Msgbox "Fail"
End If
Else
Msgbox "Fail"
End If
Thanks,
SUpputuri
SUpputuri