public void Test001_CountAvailableModules() { MainPage mainPage = new MainPage(_driver); mainPage.OpenUsingUrl(_baseUrl); Modules modules = new Modules(_driver); modules.OpenModulePanelUsingControlPanel(); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the number of available Modules: " + Modules.NumberOfAvailableModulesEEPackage); Assert.That(modules.FindElements(By.XPath(Modules.List)).Count, Is.EqualTo(Modules.NumberOfAvailableModulesEEPackage), "The number of available Modules is not correct"); }