Ejemplo n.º 1
0
 public static SearchPopupProxy QuickLinkClickSearch(this IWidgetContainer container, string name)
 {
     container.QuickLinkClick(name);
     var result = new SearchPopupProxy(container.Selenium, "_".Combine(container.Prefix, "New"));
     container.Selenium.WaitElementPresent(result.PopupLocator);
     result.SearchControl.WaitInitialSearchCompleted();
     return result;
 }
Ejemplo n.º 2
0
        public static SearchPopupProxy NotesViewClick(this IWidgetContainer container)
        {
            container.Selenium.FindElement(container.WidgetContainerLocator().CombineCss(" .sf-notes-toggler")).Click();

            By viewSelector = container.WidgetContainerLocator().CombineCss(" a.sf-note-view");
            container.Selenium.WaitElementVisible(viewSelector);
            container.Selenium.FindElement(viewSelector).Click();

            SearchPopupProxy result = new SearchPopupProxy(container.Selenium, "New");
            container.Selenium.WaitElementPresent(result.PopupLocator);
            result.SearchControl.WaitInitialSearchCompleted();
            return result;
        }
Ejemplo n.º 3
0
        public static SearchPopupProxy AlertsViewClick(this IWidgetContainer container, AlertCurrentState state)
        {
            container.Selenium.FindElement(container.WidgetContainerLocator().CombineCss(" .sf-alerts-toggler")).Click();

            By viewSelector = container.WidgetContainerLocator().CombineCss(" .sf-alert-view .{0}.sf-alert-count-label".FormatWith(GetCssClass(state)));

            container.Selenium.WaitElementVisible(viewSelector);
            container.Selenium.FindElement(viewSelector).Click();

            SearchPopupProxy result = new SearchPopupProxy(container.Selenium, "alerts");
            container.Selenium.WaitElementPresent(result.PopupLocator);
            result.SearchControl.WaitInitialSearchCompleted();
            return result;
        }