Why are you complicating the loop that much?

If you only want cells 1 and 2, use the for i in 1..2 loop or for i in
1...3 (three dots - that'll exclude 3 by definition).

But if you include the click in your loop, the 2nd time (and any other
iteration) around won't work because you won't be on the page that has
the text field - so you need to add functionality to return to the
correct page as well in the loop or add the click after all the text
fields are filled in (so it should be outside your loop).

What exactly are you trying to do? If you loop through the value in
the worksheet but keep filling in the same text field, you'll simply
end up overwriting its' contents with each iteration...

Regards,

John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to