public void Test004_DisableContentLocalization() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Disable Content Localization'"); var adminLanguagesPage = new AdminLanguagesPage(_driver); adminLanguagesPage.OpenUsingButtons(_baseUrl); adminLanguagesPage.DisableLocalization(); Trace.WriteLine(BasePage.TraceLevelPage + "The localization table should NOT be present"); Assert.IsFalse(adminLanguagesPage.ElementPresent(By.XPath(AdminLanguagesPage.LocalizationTable)), "The Localization table is still present"); }
public void Test003_EnableContentLocalization() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Enable Content Localization'"); var hostSettingsPage = new HostSettingsPage(_driver); hostSettingsPage.OpenUsingButtons(_baseUrl); hostSettingsPage.EnableContentLocalization(); var adminLanguagesPage = new AdminLanguagesPage(_driver); adminLanguagesPage.OpenUsingButtons(_baseUrl); adminLanguagesPage.EnableLocalization(); Trace.WriteLine(BasePage.TraceLevelPage + "The localization table should be present"); Assert.IsTrue(adminLanguagesPage.ElementPresent(By.XPath(AdminLanguagesPage.LocalizationTable)), "The Localization table is not present"); }