Example #1
0
        public static void SignOut()
        {
            SeleniumHelper.ClickAndWaitForByJS(By.CssSelector("[data-automation-id='TopMenuUserName']"),
                                               By.CssSelector("[data-automation-id='TopMenuSignOut']"));
            SeleniumHelper.Get(By.CssSelector("[data-automation-id='TopMenuSignOut']")).Click();
            Wait.WaitForDocumentReady();

            string URL = Configuration.GetSutUrl() + "/iSIMSMVCClientFarm1/Home/SignedOut?tenantID=" + TestDefaults.Default.TenantId;

            WebContext.WebDriver.Navigate().GoToUrl(URL);

            if (SeleniumHelper.DoesElementExist(By.CssSelector(SeleniumHelper.AutomationId("return-sign-out"))))
            {
                SeleniumHelper.Get(By.CssSelector("[data-automation-id='return-sign-out']")).Click();
            }
            Wait.WaitForDocumentReady();
        }