01-05-2012, 12:22 AM
the below statement might thro tun time error if the object is not found in the application...(lets say position of the link is changed)
so..check if the obj is present before doing anything..
even if it seems to be an extra check, i feel it s a good practice..
once this is true...then you can do ur validation...
Code:
"If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("name:="& ReportName, "Visible:=True", "abs_x:="& absX, "abs_y:="& absY).GetROProperty("visible") Then"
so..check if the obj is present before doing anything..
Code:
"If Browser("Wisdom").Page("Wisdom IA").Frame("parent").Link("name:="& ReportName, "Visible:=True", "abs_x:="& absX, "abs_y:="& absY).Exist(0) Then"
even if it seems to be an extra check, i feel it s a good practice..
once this is true...then you can do ur validation...