Module: PreviewAnnouncementsMethods

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

Overview

Contains the common page elements for the Announcements Preview page

Instance Method Summary collapse

Instance Method Details

#editObject

Clicks the Edit button and returns the AddEditAnnouncements class.



105
106
107
108
# File 'lib/kuali-sakai-common-lib/announcements.rb', line 105

def edit
  frm.button(:value=>"Edit").click
  AddEditAnnouncements.new(@browser)
end

#return_to_listObject

Clicks the Return to list button and returns the Announcements class.



93
94
95
96
# File 'lib/kuali-sakai-common-lib/announcements.rb', line 93

def return_to_list
  frm.button(:value=>"Return to List").click
  Announcements.new(@browser)
end

#save_changesObject

Clicks the Save changes button and returns the Announcements class.



99
100
101
102
# File 'lib/kuali-sakai-common-lib/announcements.rb', line 99

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