Class: DiscussionsMyProfile

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

Overview

The Profile page for Discussion Forums

Instance Method Summary collapse

Methods included from JForumsResources

#discussion_home, #manage, #member_listing, #my_bookmarks, #my_profile, #private_messages, #search

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

#avatar(filename, filepath = "") ⇒ Object

Enters the specified filename in the file field.

The method takes the filepath as an optional second parameter.



313
314
315
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 313

def avatar(filename, filepath="")
  frm.file_field(:name=>"avatar").set(filepath + filename)
end

#header_textObject

Gets the text at the top of the table. Useful for verification.



306
307
308
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 306

def header_text
  frm.table(:class=>"forumline").span(:class=>"gens").text
end

#submitObject



299
300
301
302
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 299

def submit
  frm.button(:value=>"Submit").click
  DiscussionsMyProfile.new(@browser)
end