On Fri, Jul 20, 2012 at 2:22 AM, Barry Horgan <bhor...@spreets.com> wrote:
>     When I add credits to users account "<credit_amount>" "<expiry_date>"

...

> Step definition:
>
>   def add_credits (credit_amount, expiry_date)
>     @browser.link(:text => "Add Credit").click
>     @browser.frame(:id => "credit-add").input(:id => "amount").send_keys
credit_amount
>     @browser.frame(:id => "credit-add").input(:id => "expiry").send_keys
expiry_date
>     @browser.frame(:id => "credit-add").input(:id => "comment").send_keys
"test"
>   end

This is not step definition. It should look like this:

When /^I add credits to users account "(.*)" "(.*)"$/ do |credit_amount,
expiry_date|
  # code
end

Željko
--
filipin.eu

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to