07-30-2016, 03:41 PM
(This post was last modified: 07-30-2016, 03:43 PM by Akshay.
Edit Reason: Please put your code between code tags.
)
(02-07-2011, 06:47 PM)srinivassure Wrote: Hi all,
In webtable contains a cell contains three links and how to click on the particular link.
Code:
Set MyWebTable = Browser("Browser").Page("Page").WebTable("Google.com")
RowCount = MyWebTable.RowCount
For rowno = 1 to RowCount
ColCount = MyWebTable.ColumnCount(rowno)
For colno = 1 to ColCount
RowColCellData = MyWebTable.GetCellData(rowno,colno)
LinkCount = MyWebTable.ChildItemCount(rowno,colno,"Link")
If LinkCount > 0 Then
set LinkInCell = MyWebTable.ChildItem(rowno,colno,"Link",LinkCount-1)
If LinkInCell.GetROProperty("text") = "Facebook.com" Then ' Or whatever the text property is for the required link
LinkInCell.Click
End If
End If
Next
Next