Modal Page¶
As a modal is a change in context there is a separate page object model to cover this. Having a page object model for this also helps with code reuse.
Class Methods:¶
-
class
liveobs_ui.page_object_models.mobile.modal_page.
ModalPage
(driver)[source]¶ Class that handles interacting with Modals
-
click_modal_option
(modal, option_title)[source]¶ Locate the option in the modal options and click it
Parameters: - modal – Modal to find option in
- option_title – Title of the button to click
-
get_cover_for_modal
(modal)[source]¶ Get the cover that is associated with the modal
Parameters: modal – Modal to find cover for Returns: cover object
-
static
get_modal_content
(modal)[source]¶ Get the text content of the supplied modal
Parameters: modal – Modal to get content of Returns: Text content of modal
-
static
get_modal_options
(modal)[source]¶ Get the option buttons for the supplied modal
Parameters: modal – Modal to find option buttons for Returns: List of button elements
-