06-26-2012, 10:36 PM
I am trying to see if a current ReportName is visible, if it is Then…
But I get the Run error message:
Cannot identify the object "[ Link ]" (of class Link). Verify that this object's properties match an object currently displayed in your application.
Should I look for a different property?
My code:
#1 try
…
#2 try
…
If the Link is visible, the code works. If the Link is not visible, I get an error. If not visible it should continue on.
Is this possible?
But I get the Run error message:
Cannot identify the object "[ Link ]" (of class Link). Verify that this object's properties match an object currently displayed in your application.
Should I look for a different property?
My code:
Code:
ReportName = "FAX REPORT"
absX = 50
absY = 666
#1 try
Code:
With Browser("W").Page("A").Frame("SelectAnApplication")
If .Link("name:="&ReportName, "abs_x:=" & absX, "abs_y:=" & absY).GetROProperty("visible") Then
#2 try
Code:
With Browser("W").Page("IA").Frame("SelectAnApplication")
ReportFound = .Link("name:="&ReportName, "abs_x:=" & absX, "abs_y:=" & absY).GetROProperty("visible")
If ReportFound = True Then
If the Link is visible, the code works. If the Link is not visible, I get an error. If not visible it should continue on.
Is this possible?