Class: GoogleMaps
- Inherits:
-
Object
- Object
- GoogleMaps
- 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
-
#map_frame ⇒ Object
Defines the Google Maps image as an object.
-
#map_settings ⇒ Object
Edits the page, then opens the Google Maps widget’s Settings Dialog.
-
#map_wrapping ⇒ Object
Edits the page, then opens the “Appearance” pop-up dialog.
-
#remove_map ⇒ Object
Edits the page, then removes the widget from it.
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_frame ⇒ Object
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_settings ⇒ Object
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 self.text_field(:id=>"googlemaps_input_text_location").when_present { self.class.class_eval { include GoogleMapsPopUp } } end |
#map_wrapping ⇒ Object
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 end |
#remove_map ⇒ Object
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 end |