Module: MoveMessageToMethods

Includes:
PageObject
Defined in:
lib/kuali-sakai-common-lib/messages.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.page_elements(identifier) ⇒ Object



324
325
326
327
328
329
330
331
# File 'lib/kuali-sakai-common-lib/messages.rb', line 324

def self.page_elements(identifier)
  in_frame(identifier) do |frame|
    radio_button(:received, :name=>"pvtMsgMove:_id16:0:privateForums:0:_id19", :frame=>frame)
    radio_button(:sent, :name=>"pvtMsgMove:_id16:0:privateForums:1:_id19", :frame=>frame)
    radio_button(:deleted, :name=>"pvtMsgMove:_id16:0:privateForums:2:_id19", :frame=>frame)
    radio_button(:draft, :name=>"pvtMsgMove:_id16:0:privateForums:3:_id19", :frame=>frame)
  end
end

Instance Method Details

#move_messagesObject



311
312
313
314
# File 'lib/kuali-sakai-common-lib/messages.rb', line 311

def move_messages
  frm.button(:value=>"Move Messages").click
  Messages.new(@browser)
end

#select_custom_folder_num(num) ⇒ Object

Method for selecting any custom folders present on the screen–and only the custom folders. Count begins with “1” for the first custom folder listed.



320
321
322
# File 'lib/kuali-sakai-common-lib/messages.rb', line 320

def select_custom_folder_num(num)
  frm.radio(:index=>num.to_i+3).set
end