Example #1
0
        public void SetProperties(String templateName, String newTemplateName = null, String layout = null,
                                  String descr = null, bool?useAsynchTabs = null, bool?isDefault = null)
        {
            var link = new Link(By.XPath("//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td/a[text()='" + templateName + "']"));

            link.Click();
            var popup = new ProjectTypeCenterTemplatePropertiesPopup();

            popup.SwitchTo();
            if (newTemplateName != null)
            {
                popup.TxtName.Value = newTemplateName;
            }
            if (descr != null)
            {
                popup.TxtDescription.Value = descr;
            }
            if (layout != null)
            {
                popup.SelLayout.SelectOption(layout);
            }
            if (useAsynchTabs != null)
            {
                popup.ChkUseAsynchTabs.Checked = useAsynchTabs.Value;
            }
            if (isDefault != null)
            {
                popup.ChkIsDefault.Checked = isDefault.Value;
            }
            popup.BtnOk.Click();
            popup.SwitchBackToParent(WaitForPopupToClose.Yes);
            var newLink = new Link(By.LinkText(newTemplateName ?? templateName));

            ClickPortalUI.Wait.Until(d => newLink.Exists);
        }
 public void CreateNewTemplate(String templateName, String layout, String descr = "", bool useAsynchTabs = false, bool isDefault = false)
 {
     BtnNew.Click();
     var popup = new ProjectTypeCenterTemplatePropertiesPopup();
     popup.SwitchTo();
     popup.TxtName.Value = templateName;
     popup.TxtDescription.Value = descr;
     popup.SelLayout.SelectOption(layout);
     popup.ChkUseAsynchTabs.Checked = useAsynchTabs;
     popup.ChkIsDefault.Checked = isDefault;
     popup.BtnOk.Click();
     popup.SwitchBackToParent(WaitForPopupToClose.Yes);
     var link = new Link(By.LinkText(templateName));
     ClickPortalUI.Wait.Until(d => link.Exists);
 }
Example #3
0
        public void CreateNewTemplate(String templateName, String layout, String descr = "", bool useAsynchTabs = false, bool isDefault = false)
        {
            BtnNew.Click();
            var popup = new ProjectTypeCenterTemplatePropertiesPopup();

            popup.SwitchTo();
            popup.TxtName.Value        = templateName;
            popup.TxtDescription.Value = descr;
            popup.SelLayout.SelectOption(layout);
            popup.ChkUseAsynchTabs.Checked = useAsynchTabs;
            popup.ChkIsDefault.Checked     = isDefault;
            popup.BtnOk.Click();
            popup.SwitchBackToParent(WaitForPopupToClose.Yes);
            var link = new Link(By.LinkText(templateName));

            ClickPortalUI.Wait.Until(d => link.Exists);
        }
        public void SetProperties(String templateName, String newTemplateName = null, String layout = null,
			String descr = null, bool? useAsynchTabs = null, bool? isDefault = null)
        {
            var link = new Link(By.XPath("//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td/a[text()='" + templateName + "']"));
            link.Click();
            var popup = new ProjectTypeCenterTemplatePropertiesPopup();
            popup.SwitchTo();
            if (newTemplateName != null) popup.TxtName.Value = newTemplateName;
            if (descr != null) popup.TxtDescription.Value = descr;
            if (layout != null) popup.SelLayout.SelectOption(layout);
            if (useAsynchTabs != null) popup.ChkUseAsynchTabs.Checked = useAsynchTabs.Value;
            if (isDefault != null) popup.ChkIsDefault.Checked = isDefault.Value;
            popup.BtnOk.Click();
            popup.SwitchBackToParent(WaitForPopupToClose.Yes);
            var newLink = new Link(By.LinkText(newTemplateName ?? templateName));
            ClickPortalUI.Wait.Until(d => newLink.Exists);
        }