Class: SiteSetupBase

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/site_setup.rb

Overview

This module contains the methods referring to the menu items across the top of all the Site Editor pages.

Class Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Methods inherited from PageMaker

element, expected_element, expected_title, #initialize, #method_missing, page_url

Constructor Details

This class inherits a constructor from PageMaker

Dynamic Method Handling

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

Class Method Details



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 13

def menu_elements
  # Clicks the Edit Tools link, then
  # instantiates the EditSiteTools class.
  action(:edit_tools) {|b| b.frm.link(:text=>"Edit Tools").click }

  # Clicks the Manage Groups link and
  # instantiates the Groups Class.
  action(:manage_groups) {|b| b.frm.link(:text=>"Manage Groups").click }

  # Clicks the Duplicate Site link and instantiates
  # the DuplicateSite class.
  action(:duplicate_site) {|b| b.frm.link(:text=>"Duplicate Site").click }

  action(:add_participants) {|b| b.frm.link(:text=>"Add Participants").click }

end