Webrat select_date selector failure.

Posted by sharas on Stack Overflow See other posts from Stack Overflow or by sharas
Published on 2010-05-17T19:44:59Z Indexed on 2010/05/17 19:50 UTC
Read the original article Hit count: 288

Filed under:
|
|

Code in steps file:

  select_date user.date_of_birth, :from => "Date of birth"

Selector fail

When I register with valid user credentials # features/step_definitions/authentication_steps.rb:2
  Could not find field: "user_date_of_birth_1i_1i" (Webrat::NotFoundError)
  ./features/step_definitions/authentication_steps.rb:9:in `/^I register with valid user credentials$/'
  features/authentication.feature:6:in `When I register with valid user credentials'

HTML output seems to be normal:

<select name="user[date_of_birth(1i)]" id="user_date_of_birth_1i">

Is it bug, or I am doing something wrong

© Stack Overflow or respective owner

Related posts about cucumber

Related posts about webrat