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
-
#cancel ⇒ Object
(also: #cancel_deleting_content)
Clicks the cancel button on the Pop-up and waits for the Ajax calls to finish.
-
#delete_from_the_system ⇒ Object
Clicks the ‘Delete from the system’ button and waits for The Ajax calls to complete.
-
#remove_from_library ⇒ Object
Clicks the ‘Remove from library’ button and waits for the Ajax calls to complete.
-
#remove_from_the_system_anyway ⇒ Object
TODO - Define this method.
-
#remove_from_this_library_only ⇒ Object
TODO - Define this method.
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
#cancel ⇒ Object 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").(:text=>"Cancel").click rescue self.(:text=>"Cancel").click end self.wait_for_ajax end |
#delete_from_the_system ⇒ Object
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. sleep 2 self.wait_for_ajax end |
#remove_from_library ⇒ Object
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. self..wait_while_present sleep 1.5 self.wait_for_ajax end |
#remove_from_the_system_anyway ⇒ Object
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_only ⇒ Object
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 |