Module: ComposeForumMessageMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/forums.rb
Instance Method Summary collapse
- #add_attachments ⇒ Object
- #cancel ⇒ Object
- #editor ⇒ Object
- #message=(text) ⇒ Object
- #post_message ⇒ Object
- #reply_text ⇒ Object
Instance Method Details
#add_attachments ⇒ Object
153 154 155 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 153 def #FIXME end |
#cancel ⇒ Object
157 158 159 160 161 162 163 164 165 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 157 def cancel frm.(:value=>"Cancel").click # Logic for picking the correct page class if frm.link(:text=>"Reply to Thread") ViewForumThread.new(@browser) elsif frm.link(:text=>"Post New Thread").click TopicPage.new(@browser) end end |
#editor ⇒ Object
141 142 143 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 141 def editor frm.frame(:id, "dfCompose:df_compose_body_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0) end |
#message=(text) ⇒ Object
145 146 147 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 145 def (text) editor.send_keys(text) end |
#post_message ⇒ Object
135 136 137 138 139 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 135 def frm.(:text=>"Post Message").click # Not sure if we need logic here... TopicPage.new(@browser) end |
#reply_text ⇒ Object
149 150 151 |
# File 'lib/kuali-sakai-common-lib/forums.rb', line 149 def reply_text @browser.frame(:index=>1).div(:class=>"singleMessageReply").text end |