Class: MyWorkspace

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

Overview

The Page that appears when you are not in a particular Site Note that this page differs depending on what user is logged in. The definitions below include all potential objects. We may have to split this class out into user-specific classes.

Instance 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

Instance Method Details

#calendar_eventsObject

Returns an array of strings of the Calendar Events listed below the Calendar



35
36
37
38
39
40
41
42
43
# File 'lib/sakai-cle-test-api/page_objects/my_workspace.rb', line 35

def calendar_events
  events = []
  table = @browser.frame(:class=>"portletMainIframe", :index=>2).table(:id=>"calendarForm:datalist_event_list")
  table.wait_until_present
  table.rows.each do |row|
    events << row.link.text
  end
  return events
end