Hi,
I want to test a register feature, so I have the following steps:
When(/^I fill the product field with "([^"]*)"$/) do |product|
enter_text "* id:'edtItem'", 'Item ' + "#{'product'}"
end
When(/^press the button addr$/) do
touch("* id:'btnAdd'")
end
I need to add 100 products. How can I repeat the these steps? I tried to use "while" but it did not work. I do not know if I did something wrong.
Thanks,