Module: DocButtons

Overview

Methods for the 3 buttons that appear above all Document-type “Areas” in Groups/Courses.

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#add_page(text) ⇒ Object

Clicks the Add Page button, then enters the text string into the page title field, followed by a line feed.



675
676
677
678
679
680
# File 'lib/sakai-oae-test-api/toolbars_and_menus.rb', line 675

def add_page(text)
  self.back_to_top
  add_page_button
  self.wait_for_ajax
  self.send_keys text + "\n"
end

#edit_pageObject

Clicks the Edit Page button.



666
667
668
669
670
671
# File 'lib/sakai-oae-test-api/toolbars_and_menus.rb', line 666

def edit_page
  self.back_to_top
  edit_page_button
  self.wait_for_ajax
  self.class.class_eval { include DocumentWidget }
end

#page_revisionsObject

Clicks the Page Revisions button.



683
684
685
686
687
688
# File 'lib/sakai-oae-test-api/toolbars_and_menus.rb', line 683

def page_revisions
  self.back_to_top
  page_revisions_button
  self.wait_for_ajax

end