Hello To All...Problems on QTP
I am new to this forum. I have a query:
I am working on a website, which has webtables. A particular webtable has multiple links (say, 20 links). Each link has text which is a date, now i have to check that whether or not the datediff between each of them is 3 months.
In my code the GetToProperty is not retrieving anything.
How will I retrieve the text value of the link????
Though I have written a code:
set desc = description.Create
desc("micclass").value = "Link"
Set linkobj=Browser("SMIFS CAPITAL MARKETS").Page("SMIFS CAPITAL MARKETS").ChildObjects(desc)
'Set obj1 = Browser("SMIFS CAPITAL MARKETS").Page("SMIFS CAPITAL MARKETS").WebTable("column names:=;Share Holding Pattern")
For i =1 to linkobj.Count
if obj.exists & obj1.Exists Then
substr = linkobj(i).GetTOProperty("text")
date1(i) = cdate(substr(i))
j = datediff("m", date1(i), date1(i+1))
If j = 3 Then
Reporter.ReportEvent micPass,"Date Difference Found", ""
RepReportEvent micFail, "Date Not Found",""
Thanks & Regards