/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
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(); }
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); }
/// <summary> /// Selects all the checkboxes on the current page. /// </summary> public void SelectAllCheckBoxes() { WatiNUtil.SelectAllCheckBoxes(IEInstance); }