diff --git a/lib/webrat/core/methods.rb b/lib/webrat/core/methods.rb index 57c4085..84f0bbd 100644 --- a/lib/webrat/core/methods.rb +++ b/lib/webrat/core/methods.rb @@ -57,9 +57,7 @@ module Webrat :field_by_xpath, :field_with_id, :selenium, - :simulate, :automate - - - + :simulate, :automate, + :field_named end end diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index 13f3f90..8935da2 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -255,6 +255,7 @@ For example: def_delegators :current_scope, :field_by_xpath def_delegators :current_scope, :field_with_id def_delegators :current_scope, :select_option + def_delegators :current_scope, :field_named private