Example #1
0
        public void TC_MobileLogout()
        {
            // Skip Intro
            Page_ISkipIntro skipIntro = new Page_ISkipIntro();

            skipIntro.ClickSkipIntro();

            // Perform Login
            Page_ILogin plogin = new Page_ILogin();

            plogin.moblogin();

            // Close all Overlays (Popups)
            Page_IDashboard dashboard = new Page_IDashboard();

            dashboard.CloseAllDashboardOverlays();

            // Navigate to Settings
            Common settings = new Common();

            settings.TapSettingsIcon();

            // Logout
            Page_ISettings logout = new Page_ISettings();

            logout.ClickLogout();

            // Verify Successful Logout
            Page_ILogin loginpage = new Page_ILogin();

            Assert.IsTrue(loginpage.AtLoginPage(), "Not navigated to Login Page");
        }
        public void TC_VerifySkipIntro()
        {
            Page_ISkipIntro skipIntro = new Page_ISkipIntro(softassertions);

            skipIntro.VerifyElements();

            is_soft_assert = false;
            softassertions.AssertAll();

            skipIntro.ClickSkipIntro();

            Page_ILogin loginpage = new Page_ILogin();

            Assert.IsTrue(loginpage.AtLoginPage(), "Not navigated to Login Page");
        }