07-16-2010, 12:10 AM
I have written a script which finds the nos. of link on the iGoogle webpage and storing its name in datatable. Issue is that it stores the name of the link but its getting replaced by other name. I want to store the name of all the links in datatable eg .(1st link name shd store at (R1, C1) other link name should store at (R2, C1) and so on. Column 2 stores the expected result. And How to compare the actual with expected result one by one and if it finds some difference it shd color the expected cell.
====================
====================
Code:
Set des = description.Create
des("html tag").value = "A"
Set clink= Browser("name:=iGoogle").Page("title:=iGoogle").ChildObjects(des)
c=clink.count
msgbox " the no. of links are: "& c
For i=0 to clink.count-1
x=clink(i).GetROProperty("name")
datatable.Value("actual",dtglobalsheet)=x
wait 2
Next