Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding the correct Link
#3
Solved: 12 Years, 10 Months, 3 Weeks ago
This might be a crazy way to find my link, but i got it to work. What I can find is the group namer table html id, and i knows the name of the report name link that i need, so i find the table and then search the links until i find the matching report name link and thus get the ab s_x and _y cordinates to thus click on the link. goofy?

Here is my code:

Code:
'Set Table to current open GroupName
If Browser("Wisdom").Page("Wisdom IA").Frame("Title:=Please Select An Application").WebTable( "html id:=NestedGrid1").Exist(1) Then
Set TableObj = Browser("Wisdom").Page("Wisdom IA").Frame("Title:=Please Select An Application").WebTable("html id:=NestedGrid1")
Else
Reporter.ReportEvent micFail, "Document View table Missing", "The table for Document Type 1 " & " in: " & ReportsLink & " - was NOT found."
ExitTestIteration
End If

BeginTableCount = 1 'Rows number 1 of table being retrived
EndTableCount = 0 'End row count of table being retrived
NewRowCount = TableObj.RowCount 'Start, Row count of reports for each GroupName
EndTableCount = NewRowCount - 1 'End, Row count of reports for each GroupName

'Find Link name
For r = BeginTableCount to EndTableCount
ColCount = TableObj.ColumnCount®
For c = 1 to ColCount
ChildCount = TableObj.ChildItemCount(r, c, "Link")
If ChildCount > 0 Then
For k = 0 to ChildCount - 1
rNumber = rNumber +1
Set LinkObj = TableObj.ChildItem(r, c, "Link", k)
LinkName = LinkObj.GetROProperty("innerText")
If ReportName = LinkName Then
absX = LinkObj.GetROProperty("abs_x")
absY = LinkObj.GetROProperty("abs_y")
End If
Next
Reply


Messages In This Thread
Finding the correct Link - by mv8167 - 01-20-2012, 08:57 PM
RE: Finding the correct Link - by anil2u - 01-24-2012, 06:11 PM
RE: Finding the correct Link - by mv8167 - 01-24-2012, 07:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation UFT is not finding object in runtime but able to locate the object from repository amar.vallapreddy 1 3,111 02-25-2014, 02:22 PM
Last Post: guin.anirban
  The recorded text output not appear on the correct row on the results datatable trance07 0 2,599 09-25-2013, 08:05 PM
Last Post: trance07
  Correct syntax for read and load global datatable from Resources tab in QC to QTP hari1024 1 5,658 12-08-2011, 10:43 AM
Last Post: sshukla12
  Finding the correct WebTable mv8167 0 2,647 12-07-2011, 02:38 AM
Last Post: mv8167
  Finding Links with Paren's mv8167 10 8,779 09-27-2011, 02:46 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)