On Apr 20, 9:46 pm, Fish <hhfish...@hotmail.com> wrote:
> yamlfile:
>
> items:
>     - user: user
>       pwd: pwd
>     - user: user1
>       pwd: pwd1
>
> watir code:
>
> conf =YAML::load_file("**.yaml')
> items = conf["items"]
>
> items.each do |item|
>    ie.text_field(:id,"user").set(item["user"])
> end
>
> please have a try and leave message here
>

Many thanks Fish. This will iterate for each data group through that
test case.
I have also learned to get a specific variable to use something like
this: .set(["items"][0]["user"]) which would get the first user
variable in the items group.

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

Reply via email to