Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Girish,
Most probably, the cause of the problem is that you choose an incorrect cell object to find the text. The previous script you sent worked with the 'Cell(6, 2)' object, while the object in the latest images you posted has the 'Cell(7, 2)' name. Since the needed cell can change from time to time, I recommend that you use a higher level parent object to search for the needed link.
...
PropArray = Array("ObjectType", "innerText")
ValuesArray = Array("Link", "100187")
Set tableObj = Sys.Process("iexplore").Page("*").Form("DefaultFormName").Panel(0).Panel(2).Panel(0).Panel(1).Table(1).Cell(1, 0).Panel(0).Table(0).Cell(3, 0).Table(0).Cell(0, 0).Panel(0).Panel(3).Table(0).Cell(1, 0).Table(0)
If Not tableObj.Exists Then
Log.Error "The table object is not found"
Runner.Stop
End If
Set linkObj = tableObj.FindChild(PropArray, ValuesArray, 15)
If linkObj.Exists Then
Log.Message "The link is found"
Else
Log.Error "The link is not found"
End If
...
Related Content
- 2 years ago
- 5 years ago
- 8 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago