Class: GoogleMaps

Inherits:
Object
  • Object
show all
Includes:
DocButtons, GlobalMethods, HeaderBar, HeaderFooterBar, LeftMenuBar, PageObject
Defined in:
lib/sakai-oae-test-api/page_classes.rb

Overview

Methods related to the Maps “Area” in a Course/Group.

Instance Method Summary collapse

Methods included from DocButtons

#add_page, #edit_page, #page_revisions

Methods included from PageObject

#method_missing, #name_li, #name_link

Methods included from HeaderBar

#add_content, #categories, #change_picture, #join_group, #join_requests, #manage_participants, #message, #page_title, #request_to_join_group, #settings

Methods included from LeftMenuBar

#add_new_area, #change_title_of, #delete_page, #expand, #menu_available?, #permissions_for_page, #public_pages, #view_profile_of_page

Methods included from HeaderFooterBar

#acknowledgements, #add_collection, #add_content, #browse_footer, #browse_footer_link, #change_language, #change_location, #click_link, #explore_footer, #explore_footer_link, #login, #messages_container, #my_account, #sign_out, #sign_up, #toggle_collector, #user_agreement

Methods included from GlobalMethods

#close_notification, #menu_item, #open_page, #view_person

Dynamic Method Handling

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

Instance Method Details

#map_frameObject

Defines the Google Maps image as an object. Use this for verifying the presence of any text it’s supposed to contain (like the specified address it’s supposed to be showing).



1782
1783
1784
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1782

def map_frame
  self.frame(:id, "googlemaps_iframe_map")
end

#map_settingsObject

Edits the page, then opens the Google Maps widget’s Settings Dialog.



1787
1788
1789
1790
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1787

def map_settings
  widget_settings
  self.text_field(:id=>"googlemaps_input_text_location").when_present { self.class.class_eval { include GoogleMapsPopUp } }
end

#map_wrappingObject

Edits the page, then opens the “Appearance” pop-up dialog.



1798
1799
1800
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1798

def map_wrapping
  widget_wrapping
end

#remove_mapObject

Edits the page, then removes the widget from it.



1793
1794
1795
# File 'lib/sakai-oae-test-api/page_classes.rb', line 1793

def remove_map
  remove_widget
end