Module: PageObject

Included in:
AccountPreferencesPopUp, Acknowledgements, AddAnOption, AddAreasPopUp, AddContentContainer, AddEditPoll, AddRemoveCategories, AddRemoveWidgets, AddToContactsPopUp, AddToGroupsPopUp, AllCategoriesPage, AppearancePopUp, CalendarFrame, ChangePicturePopUp, CollectorWidget, Comments, CommentsPopUp, CommonErrorElements, ComposeMessage, ContentDetailsPage, ContentPermissionsPopUp, CreateCourses, CreateGroups, CreateNewAccount, CreateResearch, DeleteContentPopUp, DeletePagePopUp, DiscussionPopUp, Discussions, DocButtons, DocumentWidget, ExploreAll, ExploreContent, ExploreCourses, ExploreGroups, ExplorePeople, ExploreResearch, ExportAsTemplate, Files, FilesAndDocsPopUp, FolderDeleteConfirm, FolderList, ForwardMessage, FourOhFourPage, FourOhThreePage, Gadget, GlobalMethods, GoogleGadgetPopUp, GoogleMaps, GoogleMapsPopUp, Gradebook, HeaderBar, HeaderFooterBar, InlineContentPopUp, LTI, LeaveWorldPopUp, LeftMenuBar, LeftMenuBarCreateWorlds, LeftMenuBarSearch, LeftMenuBarYou, Library, LibraryWidget, ListCollections, ListContent, ListGroups, ListPeople, ListProjects, ListWidget, LoginPage, ManageParticipants, MessageDeleteConfirmation, MessageFolderSettings, MessageView, Messages, MessagesDeletedList, MessagesDraftList, MessagesNewFolder, MessagesReceivedList, MessagesSentList, MoveMessageTo, MyContacts, MyDashboard, MyLibrary, MyMemberships, MyMessages, MyPreferences, MyProfileAboutMe, MyProfileBasicInfo, MyProfileContactInfo, MyProfileOnline, MyProfilePublications, OurAgreementPopUp, OwnerInfoPopUp, PageRevisionsBar, Participants, ParticipantsWidget, PendingRequestsPopUp, PermissionsPopUp, Polls, ProfilePermissionsPopUp, RSS, RSSFeedPopUp, Remote, RemoteContentPopUp, RemoveContactsPopUp, ReplyToMessage, ResearchIntro, SaveContentPopUp, SearchBar, SendMessagePopUp, SettingsPopUp, ShareWithPopUp, ViewPerson
Defined in:
lib/sakai-oae-test-api/gem_extensions.rb

Overview

Contains methods that extend the PageObject module to include methods that are custom to OAE.

Defined Under Namespace

Modules: Accessors

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



20
21
22
# File 'lib/sakai-oae-test-api/gem_extensions.rb', line 20

def method_missing(sym, *args, &block)
  @browser.send sym, *args, &block
end

Instance Method Details

#name_li(name) ⇒ Object

Monkey patch helper method for li elements referring to named items…



16
17
18
# File 'lib/sakai-oae-test-api/gem_extensions.rb', line 16

def name_li(name)
  self.li(:text=>/#{Regexp.escape(name)}/i)
end

Monkey patch helper method for links to named objects…



10
11
12
# File 'lib/sakai-oae-test-api/gem_extensions.rb', line 10

def name_link(name)
  self.link(:text=>/#{Regexp.escape(name)}/i)
end