Module: AnnouncementsMergeMethods

Defined in:
lib/kuali-sakai-common-lib/announcements.rb,
lib/kuali-sakai-common-lib/announcements.rb

Overview

Show Announcements from Another Site. On this page you select what announcements you want to merge into the current Site. This module contains definitions for the page elements that are common between OAE and CLE.

Instance Method Summary collapse

Instance Method Details

#check(site_name) ⇒ Object

Checks the checkbox for the specified site name

Parameters:

  • site_name (String)

    the name of the relevant site displayed in the table



77
78
79
# File 'lib/kuali-sakai-common-lib/announcements.rb', line 77

def check(site_name)
  frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(site_name)}/).checkbox(:id=>/site/).set
end

#saveObject

Clicks the Save button and returns the Announcements class.



82
83
84
85
# File 'lib/kuali-sakai-common-lib/announcements.rb', line 82

def save
  frm.button(:value=>"Save").click
  Announcements.new(@browser)
end