def test_start_login_smoke(self, set_capabilities, setup_logging):
        """
        Scenario:
            Verify Login screen is loaded successfully
        """
        try:
            setup_logging.info('-- Starting {} Test Case'.format(
                TestAndroidLogin.__name__))

            android_new_landing_page = AndroidNewLanding(
                set_capabilities, setup_logging)
            android_login_page = AndroidLogin(set_capabilities, setup_logging)

            assert android_new_landing_page.load_login_screen(
            ) == Globals.LOGIN_ACTIVITY_NAME
            assert android_login_page.on_screen(
            ) == Globals.LOGIN_ACTIVITY_NAME

            setup_logging.info('Login screen successfully loaded')
            android_login_page.wifi_toggle()
            android_login_page.location_toggle()

            # set_capabilities.driver.toggle_wifi()
        except:
            android_login_page = AndroidLogin(set_capabilities, setup_logging)
            android_global = Globals(object)
            test_case_name = 'test_start_login_smoke'
            android_global.screenshot(set_capabilities, test_case_name,
                                      setup_logging)
            android_login_page.wifi_toggle()
            android_login_page.location_toggle()
    def test_forgot_password_alert(self, set_capabilities, setup_logging):
        """
        Scenarios:
                Verify tapping 'Forgot your password?' will  load 'Reset Password' alert
                Verify following contents are visible on 'Reset Password' alert, 
                Alert Title, Alert Message, Email edit field, Cancel & OK buttons
                Verify tapping 'Cancel' will close 'Reset Password' alert
        """
        try:
            android_login_page = AndroidLogin(set_capabilities, setup_logging)
            android_login_page.get_forgot_password_alert()

            assert android_login_page.get_forgot_password_alert_title(
            ).text == strings.LOGIN_RESET_PASSWORD_ALERT_TITLE
            # assert android_login_page.get_forgot_password_alert_msg().text == strings.LOGIN_RESET_PASSWORD_ALERT_MSG
            assert android_login_page.get_forgot_password_alert_ok_button(
            ).text == strings.LOGIN_RESET_PASSWORD_ALERT_OK
            forgot_password_alert_cancel_button = android_login_page.get_forgot_password_alert_cancel_button(
            ).text
            assert 1 == 0
            assert forgot_password_alert_cancel_button == strings.LOGIN_RESET_PASSWORD_ALERT_CANCEL

            assert android_login_page.close_forgot_password_alert()

        except:
            android_login_page = AndroidLogin(set_capabilities, setup_logging)
            android_global = Globals(object)
            test_case_name = 'test_forgot_password_alert'
            android_global.screenshot(set_capabilities, test_case_name,
                                      setup_logging)
            assert 1 == 0
    def test_ui_elements(self, set_capabilities, setup_logging):
        """
        Scenarios:
        Verify following contents are visible on screen 
            "Back icon", "Sign In" Title, "User name or e-mail address" label, User Name edit-field
            Password edit-field, "Forgot your password?" option, "Sign In" button,
            "Or sing in with" label, "Facebook" button, "Google" button,
            "By signing in to this app, you agree to the" label,
            "edX Terms of Service and Honor Code" option
        Verify all screen contents have their default values
        """
        try:
            android_login_page = AndroidLogin(set_capabilities, setup_logging)

            assert android_login_page.get_title_textview(
            ).text == strings.LOGIN
            assert android_login_page.get_username_editfield(
            ).text == strings.BLANK_FIELD
            assert android_login_page.get_password_editfield(
            ).text == strings.BLANK_FIELD
            # assert android_login_page.get_password_editfield().text == strings.LOGIN_PASSWORD_WATER_MARK
            assert android_login_page.get_forgot_password_textview(
            ).text == strings.LOGIN_FORGOT_PASSWORD
            assert android_login_page.get_sign_in_button(
            ).text == strings.LOGIN
            login_with_email_divider = android_login_page.get_login_with_email_divider_textview(
            ).text
            assert login_with_email_divider == strings.LOGIN_ANDROID_WITH_EMAIL_DIVIDER
            assert android_login_page.get_facebook_textview(
            ).text == strings.FACEBOOK_OPTION
            assert android_login_page.get_google_textview(
            ).text == strings.GOOGLE_OPTION
            assert android_login_page.get_agreement_textview(
            ).text == strings.LOGIN_ANDROID_AGREEMENT
        except:
            android_login_page = AndroidLogin(set_capabilities, setup_logging)
            android_global = Globals(object)
            test_case_name = 'test_ui_elements'
            android_global.screenshot(set_capabilities, test_case_name,
                                      setup_logging)
            assert 1 == 0