Пример #1
0
        /// <summary>
        /// Selects all templates from the sidebar.
        /// </summary>
        private void SelectAllTemplatesFromTheSidebar()
        {
            BAT.Utilities().InMultiSiteMode(() =>
            {
                ActiveBrowser.WaitUntilReady();
                ActiveBrowser.WaitForAsyncOperations();
                ActiveBrowser.WaitForBinding();

                HtmlAnchor allTemplatesFilter = ActiveBrowser.Find.ByExpression <HtmlAnchor>("id=?_controlTemplatesBackendList_ctl00_ctl00_sidebar_allTemplates_ctl00_ctl00_allTemplates")
                                                .AssertIsPresent("all templates filter");
                allTemplatesFilter.Click();

                ActiveBrowser.WaitForAsyncOperations();
                ActiveBrowser.WaitForBinding();
            });
        }