Module: DocButtons
- Includes:
- PageObject
- Included in:
- CalendarFrame, Comments, ContentDetailsPage, Discussions, Files, Gadget, GoogleMaps, GradebookFrame, LTI, MessagesFrame, PollsFrame, PostEmFrame, RSS, Remote, ResearchIntro, SingleUserFrame, SiteStatisticsFrame
- Defined in:
- lib/sakai-oae-test-api/toolbars_and_menus.rb
Overview
Methods for the 3 buttons that appear above all Document-type “Areas” in Groups/Courses.
Instance Method Summary collapse
-
#add_page(text) ⇒ Object
Clicks the Add Page button, then enters the text string into the page title field, followed by a line feed.
-
#edit_page ⇒ Object
Clicks the Edit Page button.
-
#page_revisions ⇒ Object
Clicks the Page Revisions button.
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 self.wait_for_ajax self.send_keys text + "\n" end |
#edit_page ⇒ Object
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 self.wait_for_ajax self.class.class_eval { include DocumentWidget } end |
#page_revisions ⇒ Object
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 self.wait_for_ajax end |