Module: EventDetailMethods
- Defined in:
- lib/kuali-sakai-common-lib/calendar.rb
Instance Method Summary collapse
- #back_to_calendar ⇒ Object
-
#details ⇒ Object
Returns a hash object containing the contents of the event details table on the page, with each of the header column items as a Key and the associated data column as the corresponding Value.
- #edit ⇒ Object
- #event_title ⇒ Object
-
#go_to_today ⇒ Object
Clicks the Go to Today button, then instantiates the Calendar class.
- #last_event ⇒ Object
- #next_event ⇒ Object
- #remove_event ⇒ Object
Instance Method Details
#back_to_calendar ⇒ Object
212 213 214 215 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 212 def back_to_calendar frm.(:value=>"Back to Calendar").click Calendar.new(@browser) end |
#details ⇒ Object
Returns a hash object containing the contents of the event details table on the page, with each of the header column items as a Key and the associated data column as the corresponding Value.
244 245 246 247 248 249 250 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 244 def details details = {} frm.table(:class=>"itemSummary").rows.each do |row| details.store(row.th.text, row.td.text) end return details end |
#edit ⇒ Object
231 232 233 234 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 231 def edit frm.(:value=>"Edit").click AddEditEvent.new(@browser) end |
#event_title ⇒ Object
227 228 229 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 227 def event_title frm.div(:class=>"portletBody").h3.text end |
#go_to_today ⇒ Object
Clicks the Go to Today button, then instantiates the Calendar class.
207 208 209 210 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 207 def go_to_today frm.(:value=>"Go to Today").click Calendar.new(@browser) end |
#last_event ⇒ Object
217 218 219 220 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 217 def last_event frm().(:value=>"< Last Event").click EventDetail.new(@browser) end |
#next_event ⇒ Object
222 223 224 225 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 222 def next_event frm().(:value=>"Next Event >").click EventDetail.new(@browser) end |
#remove_event ⇒ Object
236 237 238 239 |
# File 'lib/kuali-sakai-common-lib/calendar.rb', line 236 def remove_event frm.(:value=>"Remove event").click DeleteConfirm.new(@browser) end |