public void Test002_UnInstallProvider()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'UnInstall Provider'");

			var hostExtensionsPage = new HostExtensionsPage(_driver);

			hostExtensionsPage.OpenUsingUrl(_baseUrl);
			hostExtensionsPage.AccordionOpen(By.XPath(ExtensionsPage.ProvidersAccordion));

			int itemNumber =
			hostExtensionsPage.FindElements(
				By.XPath(ExtensionsPage.ProvidersList)).Count;

			hostExtensionsPage.DeleteExtension(_providerToInstall);

			hostExtensionsPage.OpenUsingButtons(_baseUrl);
			hostExtensionsPage.AccordionOpen(By.XPath(ExtensionsPage.ProvidersAccordion));

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the number of elements in the list decreased by 1");
			Assert.That(hostExtensionsPage.FindElements(By.XPath(ExtensionsPage.ProvidersList)).Count, Is.EqualTo(itemNumber - 1),
						"The Extension is not deleted correctly");
		}
Exemple #2
0
		public void Test006_UnInstallLanguagePack()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'UnInstall Language pack'");

			var hostExtensionsPage = new HostExtensionsPage(_driver);

			//Extension pack
			hostExtensionsPage.OpenUsingUrl(_baseUrl);
			hostExtensionsPage.AccordionOpen(By.XPath(ExtensionsPage.ExtensionLanguagePacksAccordion));

			int itemNumber =
			hostExtensionsPage.FindElements(
				By.XPath(
					ExtensionsPage.ExtensionLanguagePacksPanel + "/following-sibling :: *//tr[td/span[contains(text(), '" +
					hostExtensionsPage.SetLanguageName(_languagePackToDeploy) + "')]]")).Count;

			while (itemNumber  > 0)
			{
				Trace.WriteLine(BasePage.TraceLevelComposite + "Delete Extension: ");

				hostExtensionsPage.DeleteLanguagePack(ExtensionsPage.ExtensionLanguagePacksPanel, _languagePackToDeploy);

				itemNumber = itemNumber - 1;
			}

			hostExtensionsPage.OpenUsingButtons(_baseUrl);
			hostExtensionsPage.AccordionOpen(By.XPath(ExtensionsPage.CoreLanguagePacksAccordion));

			hostExtensionsPage.DeleteLanguagePack(ExtensionsPage.CoreLanguagePacksPanel, _languagePackToDeploy);

			hostExtensionsPage.OpenUsingButtons(_baseUrl);
			hostExtensionsPage.AccordionOpen(By.XPath(ExtensionsPage.CoreLanguagePacksAccordion)); 

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the number of elements in the list is zero");
			Assert.That(hostExtensionsPage.FindElements(By.XPath(ExtensionsPage.CoreLanguagePacksList)).Count, Is.EqualTo(0),
			            "The Extension is not deleted correctly");
		}