Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webtable contains cell contains two links, how to click on link
#10
Solved: 11 Years, 4 Months, 3 Weeks ago
(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
Reply


Messages In This Thread
RE: Webtable contains cell contains two links, how to click on link - by Akshay - 07-30-2016, 03:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,820 04-29-2017, 04:53 PM
Last Post: kowshik
  How to get the links which appears on mouse hover of parent link rajendra649 9 35,696 03-10-2017, 06:35 PM
Last Post: satish00k
  [UFT] Wpf Label: click on image into cell robertosalemi 1 2,522 05-03-2016, 05:46 PM
Last Post: robertosalemi
  Getting links from a cell bistritapcv 2 3,536 03-29-2016, 05:48 PM
Last Post: siddheshbhavasar
  Webtable Checkpoint to get cell data from dynamic WbfGrid Neetha 1 3,502 08-20-2015, 11:43 PM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 3 Guest(s)