Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to Iterate using For Loop
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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]
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
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

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thank you very Much it worked.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FOR LOOP shayk1985 1 5,301 12-13-2012, 11:35 AM
Last Post: sams001
  How to exit from a for loop silpavinod 2 9,873 10-17-2012, 12:55 AM
Last Post: agarwl.anurag
  for loop sia sharma 1 3,340 09-13-2012, 11:44 AM
Last Post: ksrikanth2k9
  Help with Loop LJENNE 1 3,187 08-10-2012, 12:32 PM
Last Post: Ankesh
  How to get out of infinite FOR loop... sssidana 3 4,560 07-20-2012, 01:04 AM
Last Post: sree.85

Forum Jump:


Users browsing this thread: 3 Guest(s)