Example #1
0
 /// <summary>
 /// Select the display mode for pages.
 /// </summary>
 /// <param name="pageDisplayMode">The display mode. Either "View", "Edit" or "Layout".</param>
 public void SelectPageDisplayMode(string pageDisplayMode)
 {
     if (!string.IsNullOrEmpty(pageDisplayMode))
     {
         WatiNUtil.SelectRadioButtonByName(IEInstance, "dnn$IconBar.ascx$optMode", pageDisplayMode);
     }
 }
Example #2
0
 /// <summary>
 /// Select the database type radio button.
 /// </summary>
 /// <param name="databaseType">The database type.</param>
 public void SelectDatabaseType(string databaseType)
 {
     if (!string.IsNullOrEmpty(databaseType))
     {
         WatiNUtil.SelectRadioButtonByName(IEInstance, "wizInstall$rblDatabases", databaseType);
     }
 }
Example #3
0
 /// <summary>
 /// Select the install method radio button.
 /// </summary>
 /// <param name="installMethod">The install method. "Auto", "Custom" or "Typical"</param>
 public void SelectInstallMethod(string installMethod)
 {
     if (!string.IsNullOrEmpty(installMethod))
     {
         WatiNUtil.SelectRadioButtonByName(IEInstance, "wizInstall$rblInstall", installMethod);
     }
 }
Example #4
0
 /// <summary>
 /// Selects the module checkbox.
 /// </summary>
 /// <param name="moduleName">The name of the module.</param>
 public void SelectOptionalModule(string moduleName)
 {
     if (!string.IsNullOrEmpty(moduleName))
     {
         WatiNUtil.SelectCheckBoxByName(IEInstance, moduleName);
     }
 }
Example #5
0
 /// <summary>
 /// Selects a Resource pack type on the create language pack.
 /// </summary>
 /// <param name="packageType">The package type to select. Ex. "Core", "Module", "Provider" etc.</param>
 public void SelectLanguagePackType(string packageType)
 {
     if (!string.IsNullOrEmpty(packageType))
     {
         if (PopUpFrame != null)
         {
             WatiNUtil.SelectRadioButtonByName(PopUpFrame, "LanguagePackWriter$rbPackType", packageType);
         }
         WatiNUtil.SelectRadioButtonByName(IEInstance, "LanguagePackWriter$rbPackType", packageType);
     }
 }
Example #6
0
        private void LoadHomePage(string timeOutValue)
        {
            int timeOut = 180;

            if (timeOutValue == null)
            {
                int.TryParse(timeOutValue, out timeOut);
            }
            IEInstance = WatiNUtil.OpenIEInstance(SiteUrl, false, timeOut, true, false);
            IEInstance.WaitForComplete();
        }
Example #7
0
        private void LoadHomePage(string timeOutValue)
        {
            int timeOut = 180;

            if (timeOutValue == null)
            {
                int.TryParse(timeOutValue, out timeOut);
            }
            Thread.Sleep(1500);
            IEInstance = WatiNUtil.OpenIEInstance(SiteUrl, false, timeOut, true, false);
            Thread.Sleep(2500);
        }
Example #8
0
 /// <summary>
 /// Selects all the checkboxes on the current page.
 /// </summary>
 public void SelectAllCheckBoxes()
 {
     WatiNUtil.SelectAllCheckBoxes(IEInstance);
 }