features/support/page.rb in page-object-0.6.7 vs features/support/page.rb in page-object-0.6.8
- old
+ new
@@ -1,11 +1,11 @@
class Page
include PageObject
expected_title "Static Elements Page"
expected_element :hello0
-
+
link(:hello0, {:text => "Hello", :index => 0})
link(:hello1, {:text => "Hello", :index => 1})
link(:hello2, {:text => "Hello", :index => 2})
text_field(:text_field_id, :id => "text_field_id")
@@ -63,10 +63,11 @@
select_list(:sel_list_value, :value => "option1")
select_list(:sel_list_xpath, :xpath => "//select")
select_list(:sel_list_text, :text => "Test 1")
select_list(:sel_list_class_index, :class => "sel_list_class", :index => 0)
select_list(:sel_list_name_index, :name => "sel_list_name", :index => 0)
+ select_list(:sel_list_multiple, :id => "sel_list_multiple")
checkbox(:cb_id, :id => 'cb_id')
checkbox(:cb_name, :name => 'cb_name')
checkbox(:cb_class, :class => 'cb_class')
checkbox(:cb_index, :index => 0)
@@ -188,11 +189,11 @@
ordered_list(:ol_class, :class => 'ol_class')
ordered_list(:ol_index, :index => 0)
ordered_list(:ol_xpath, :xpath => '//ol')
ordered_list(:ol_class_index, :class => "ol_class", :index => 0)
ordered_list(:ol_name_index, :name => "ol_name", :index => 0)
-
+
h1(:h1_id, :id => 'h1_id')
h1(:h1_class, :class => 'h1_class')
h1(:h1_name, :name => 'h1_name')
h1(:h1_index, :index => 0)
h1(:h1_xpath, :xpath => '//h1')
@@ -236,11 +237,11 @@
h6(:h6_name, :name => 'h6_name')
h6(:h6_index, :index => 0)
h6(:h6_xpath, :xpath => '//h6')
h6(:h6_class_index, :class => 'h6_class', :index => 0)
h6(:h6_name_index, :name => 'h6_name', :index => 0)
-
+
paragraph(:p_id, :id => 'p_id')
paragraph(:p_class, :class => 'p_class')
paragraph(:p_name, :name => 'p_name')
paragraph(:p_index, :index => 0)
paragraph(:p_xpath, :xpath => '//p')
@@ -266,10 +267,10 @@
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')