Login Page¶
The login page is the first page that mobile users see when they use LiveObs, they are prompted to enter their username and password (either supplied to them by a more privileged user or via LDAP).
For test and development purposes there may be multiple databases running on the one LiveObs instances, if this is the case then there will be a dropdown that allows for the selection of the database to log into.
Class Methods:¶
-
class
liveobs_ui.page_object_models.common.login_page.
LoginPage
(driver)[source]¶ Class that handles interaction with the Login Page
-
get_login_error_message
()[source]¶ Get error message shown after an unsuccessful login
Returns: Error message if present Return type: str or None
-
is_login_page
()[source]¶ Verify that we are indeed on the login page
Returns: if current page is the login page
-
login
(username, password, database=’nhclinical’, desktop=False)[source]¶ Fill out the login form and press the submit button
Parameters: - username – Username to login with
- password – Password for the username supplied
- database – Name of the database to log into if the database selection element is visible
- desktop – If the login is via desktop (as different field name)
-