Module: DeleteContentPopUp

Includes:
PageObject
Defined in:
lib/sakai-oae-test-api/pop_up_dialogs.rb

Overview

Methods for the Pop-up dialog that appears when you want to remove content from Libraries.

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#cancelObject Also known as: cancel_deleting_content

Clicks the cancel button on the Pop-up and waits for the Ajax calls to finish



647
648
649
650
651
652
653
654
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 647

def cancel
  begin
    self.div(:id=>"deletecontent_dialog").button(:text=>"Cancel").click
  rescue
    self.button(:text=>"Cancel").click
  end
  self.wait_for_ajax
end

#delete_from_the_systemObject

Clicks the ‘Delete from the system’ button and waits for The Ajax calls to complete.



668
669
670
671
672
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 668

def delete_from_the_system
  self.delete_from_the_system_button
  sleep 2
  self.wait_for_ajax
end

#remove_from_libraryObject

Clicks the ‘Remove from library’ button and waits for the Ajax calls to complete.



659
660
661
662
663
664
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 659

def remove_from_library
  self.remove_from_library_button
  self.remove_from_library_button_element.wait_while_present
  sleep 1.5
  self.wait_for_ajax
end

#remove_from_the_system_anywayObject

TODO - Define this method



675
676
677
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 675

def remove_from_the_system_anyway

end

#remove_from_this_library_onlyObject

TODO - Define this method



680
681
682
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 680

def remove_from_this_library_only

end