Not able to Iterate using For Loop - tanyamrz - 05-22-2012
Hi All,
Iam new to this forrum,
i have one query iam trying to capture the Links using innertext of gmail. but iam not able to do so can you please help me
here is my DPp Code
Code: For i = 0 to 40
x = Browser("name:=.*").page("title:=.*").Frame("name:=c.*").Link("name:= .*","index:=&i").GetROProperty("innertext")
print i
print x
Next
OutPut: 0
+You
1
+You
2
+You
3
+You
4
+You
5
+You
6
it's just printing the same Link
Can anyone Please help me where iam going wrong[/b]
RE: Not able to Iterate using For Loop - Ankesh - 05-22-2012
Modifying ur code for index. Chk now n see if it works.
Code: For i = 0 to 40
x = Browser("name:=.*").page("title:=.*").Frame("name:=c.*").Link("name:= .*","index:="&i).GetROProperty("innertext")
print i
print x
Next
Regards,
Ankesh
RE: Not able to Iterate using For Loop - tanyamrz - 05-22-2012
Thank you very Much it worked.
|