features/support/page.rb in page-object-1.0 vs features/support/page.rb in page-object-1.0.1
- old
+ new
@@ -26,11 +26,10 @@
text_area(:text_area_id, :id => "text_area_id")
text_area(:text_area_class, :class => "text_area_class")
text_area(:text_area_css, :css => ".text_area_class")
text_area(:text_area_name, :name => "text_area_name")
text_area(:text_area_xpath, :xpath => "//textarea")
- text_area(:text_area_css, :css => "textarea")
text_area(:text_area_tag_name, :tag_name => "textarea")
text_area(:text_area_index, :index => 0)
text_area(:text_area_text, :text => "")
text_area(:text_area_value, :value => "")
text_area(:text_area_class_index, :class => "text_area_class", :index => 0)
@@ -40,11 +39,10 @@
hidden_field(:hidden_field_id, :id => "hidden_field_id")
hidden_field(:hidden_field_class, :class => "hidden_field_class")
hidden_field(:hidden_field_css, :css => ".hidden_field_class")
hidden_field(:hidden_field_name, :name => "hidden_field_name")
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 => "12345")
hidden_field(:hidden_field_class_index, :class => "hidden_field_class", :index => 0)
@@ -58,11 +56,10 @@
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")
link(:google_search_title, :title => "link_title")
select_list(:sel_list_id, :id => "sel_list_id")
select_list(:sel_list_class, :class => "sel_list_class")
select_list(:sel_list_css, :css => ".sel_list_class")
@@ -110,11 +107,10 @@
div(:div_index, :index => 0)
div(:div_xpath, :xpath => '//div')
div(:div_title, :title => 'div_title')
div(:div_class_index, :class => "div_class", :index => 0)
div(:div_name_index, :name => "div_name", :index => 0)
- div(:div_css, :css => ".div_class")
div(:div_data_entity, :data_entity => "test")
span(:span_id, :id => 'span_id')
span(:span_name, :name => 'span_name')
@@ -153,10 +149,9 @@
button(:button_css, :css => '.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')