features/support/page.rb in page-object-0.5.4 vs features/support/page.rb in page-object-0.5.5
- old
+ new
@@ -36,11 +36,11 @@
hidden_field(:hidden_field_xpath, :xpath => "//input[@type='hidden']")
hidden_field(:hidden_field_css, :css => "input[type='hidden']")
hidden_field(:hidden_field_tag_name, :tag_name => "input[type='hidden']")
hidden_field(:hidden_field_index, :index => 0)
hidden_field(:hidden_field_text, :text => "")
- hidden_field(:hidden_field_value, :value => "")
+ hidden_field(:hidden_field_value, :value => "12345")
hidden_field(:hidden_field_class_index, :class => "hidden_field_class", :index => 0)
hidden_field(:hidden_field_name_index, :name => "hidden_field_name", :index => 0)
link(:google_search_id, :id => "link_id")
link(:google_search_name, :name => "link_name")
@@ -65,10 +65,11 @@
checkbox(:cb_id, :id => 'cb_id')
checkbox(:cb_name, :name => 'cb_name')
checkbox(:cb_class, :class => 'cb_class')
checkbox(:cb_index, :index => 0)
checkbox(:cb_xpath, :xpath => "//input[@type='checkbox']")
+ checkbox(:cb_value, :value => '1')
checkbox(:cb_class_index, :class => "cb_class", :index => 0)
checkbox(:cb_name_index, :name => "cb_name", :index => 0)
radio_button(:milk_id, :id => 'milk_id')
radio_button(:milk_name, :name => 'milk_name')
@@ -252,7 +253,8 @@
file_field(:file_field_class_index, :class => 'file_field_class', :index => 0)
file_field(:file_field_name_index, :name => 'file_field_name', :index => 0)
file_field(:file_field_xpath, :xpath => "//input[@type='file']")
link(:open_window, :text => 'New Window')
+ link(:child, :id => 'child')
end