Module: AccountPreferencesPopUp
- Includes:
- PageObject
- Defined in:
- lib/sakai-oae-test-api/pop_up_dialogs.rb
Overview
Methods related to the My Account Pop Up dialog.
Instance Method Summary collapse
-
#cancel ⇒ Object
Need this custom Cancel button method because there are three different cancel buttons on this pop-up.
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
Need this custom Cancel button method because there are three different cancel buttons on this pop-up. This method will find the one that works and click on it.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 33 def cancel case when self.div(:id=>"accountpreferences_preferContainer").visible? self.div(:id=>"accountpreferences_preferContainer").(:class=>"s3d-link-button s3d-bold accountpreferences_cancel").click when self.div(:id=>"accountpreferences_changePrivacyContainer").visible? self.div(:id=>"accountpreferences_changePrivacyContainer").(:class=>"s3d-link-button s3d-bold accountpreferences_cancel").click when self.div(:id=>"accountpreferences_changePassContainer").visible? self.div(:id=>"accountpreferences_changePassContainer").(:class=>"s3d-link-button s3d-bold accountpreferences_cancel").click else puts "\nCouldn't find the cancel button!\n" end end |