features/support/page.rb in page-object-0.6.3 vs features/support/page.rb in page-object-0.6.4

- old
+ new

@@ -52,10 +52,11 @@ link(:google_search_link, :link => "Google Search") link(:google_search_link_text, :link_text => "Google Search") link(:google_search_href, :href => "success.html") link(:google_search_text, :text => "Google Search") link(:google_search_index, :index => 0) + link(:google_search_css, :css => "a.link_class") select_list(:sel_list_id, :id => "sel_list_id") select_list(:sel_list_class, :class => "sel_list_class") select_list(:sel_list_index, :index => 0) select_list(:sel_list_name, :name => "sel_list_name") @@ -125,10 +126,11 @@ button(:button_class, :class => 'button_class') button(:button_index, :index => 0) button(:button_xpath, :xpath=> "//input[@type='submit']") button(:button_text, :text => 'Click Me') button(:button_value, :value => 'Click Me') + button(:button_css, :css => "input[type='submit']") button(:button_class_index, :class => "button_class", :index => 0) button(:button_name_index, :name => "button_name", :index => 0) button(:button_image_id, :id => 'button_image_id') button(:button_image_src, :src => 'images/submit.gif') @@ -254,10 +256,25 @@ file_field(:file_field_index, :index => 0) file_field(:file_field_title, :title => 'file_field_title') 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']") + + label(:label_id, :id => 'label_id') + label(:label_name, :name => 'label_name') + label(:label_class, :class => 'label_class') + label(:label_text, :text => 'page-object is the best!') + label(:label_index, :index => 0) + label(:label_xpath, :xpath => '//label') + label(:label_class_index, :class => "label_class", :index => 0) + label(:label_name_index, :name => "label_name", :index => 0) link(:open_window, :text => 'New Window') link(:child, :id => 'child') + + element(:article_id, :article, :id => 'article_id') + element(:header_id, :header, :id => 'header_id') + element(:footer_id, :footer, :id => 'footer_id') + element(:summary_id, :summary, :id => 'summary_id') + element(:details_id, :details, :id => 'details_id') end