Desktop Pages¶
As the desktop for LiveObs uses Odoo’s webclient there are a number of common page objects that can be interactive. These are the top and left navigations, the search box and the view switch buttons.
- Account Administration Page
- Acuity Board Page
- Allocation Wizard Interaction
- Common Form View Interactions
- Common Kanban View Interaction
- Common List View Interaction
- Common Modal View Interactions
- Nursing Shift Change Wizard Interaction
- Overdue Tasks Page
- Patient Record Page
- Patients By Ward Page
- Patients Without Bed
- Recently Discharged / Transferred Pages
- Wardboard Common Functionality
- Workload Page
-
class
liveobs_ui.page_object_models.desktop.desktop_common.
BaseDesktopPage
(driver)[source]¶ Base class to initialise the base page that will be called from all pages
-
change_view_mode
(view_mode)[source]¶ Click the supplied view_mode button
Parameters: view_mode – View mode to select
Click on the supplied breadcrumb and verify that it is no longer on the page
Parameters: breadcrumb – Breadcrumb element to click
Get the breadcrumbs that allow to go back up a page in the navigation
Returns: list of breadcrumb elements
Returns the text attribute of an element on an item in the left menu section on the desktop app
Parameters: menu_item – WebElement from where to get the text element Returns: The text within the WebElement Return type: unicode
Returns a list of all the items in the left menu section on the desktop app
Returns: A list of all the WebElement items Return type: List of WebElements
-
go_to_next_record_in_list
()[source]¶ Click the next record button in the list of records. This is shown on the form view
-
go_to_page
(page_title)[source]¶ Go to the supplied page in the left hand menu based on the title of the page
Parameters: page_title – Title of the page to go to
-
go_to_previous_page
()[source]¶ Go back to the page used to get to the patient record in the breadcrumbs
-
go_to_previous_record_in_list
()[source]¶ Click the previous record button in the list of records. This is shown on the form view
-
perform_search
(search_query, search_type=None)[source]¶ Using the searchview conduct a search with the supplied search query
Parameters: - search_query – Query to input into the search box
- search_type – Type of search (uses Odoo Search autocomplete)
-