public void ThenTheLanguageDropDownShouldAlsoSelectLanguage(string languageName) { var selLang = IEInstance.Div(Find.ByClass("language-object")) .SelectList(Find.ById(s => s.EndsWith("selectCulture"))).SelectedOption.Value; Assert.AreEqual(languageName, selLang); }
public Div GetProfilePropertyDiv(string propertyName) { if (PopUpFrame != null) { return(PopUpFrame.Div(Find.ById(s => s.EndsWith("ManageUsers_Profile_ProfileProperties_" + propertyName)))); } return(IEInstance.Div(Find.ById(s => s.EndsWith("ManageUsers_Profile_ProfileProperties_" + propertyName)))); }
public Div GetPropertyEditorRow(string propertyName) { if (PopUpFrame != null) { return(PopUpFrame.Div(Find.ById(s => s.EndsWith("EditProfileDefinition_Wizard_Properties_" + propertyName)))); } return(IEInstance.Div(Find.ById(s => s.EndsWith("EditProfileDefinition_Wizard_Properties_" + propertyName)))); }
public void ThenIShouldSeeErrorMessage() { if (HomePage.PopUpFrame != null) { Assert.IsTrue(HomePage.PopUpFrame.Div(Find.ByClass(c => c.Contains("dnnFormValidationSummary"))).Exists); } else { Assert.IsTrue(IEInstance.Div(Find.ByClass(c => c.Contains("dnnFormValidationSummary"))).Exists); } }
/// <summary> /// Checks the role checkbox on the newsletters page for the role specified. /// </summary> /// <param name="roleName">The name of the role.</param> public void CheckRoleCheckBoxByName(string roleName) { //Returns the Edit Button for the user specified CheckBox roleCheckBox = null; TableRowCollection roleRows = IEInstance.Div(Find.ByClass("dnnRolesGrid")).Table(Find.Any).TableRows; foreach (TableRow row in roleRows) { if (row.TableCells[0].InnerHtml.Contains(roleName)) { roleCheckBox = row.TableCells[1].CheckBox(Find.Any); } continue; } roleCheckBox.Checked = true; }
/// <summary> /// Finds the action menu image for the first module within pane specified. /// </summary> /// <param name="paneId">The id of the pane div object.</param> /// <returns>The action menu image.</returns> public Image GetActionMenuImageForModuleInPane(string paneId) { return(IEInstance.Div(Find.ById(paneId)).Div(Find.ByClass("dnnActionMenuTag")).Image(Find.Any)); }
public void WhenIClickLanguageIcon(string languageName) { IEInstance.Div(Find.ByClass("language-object")).Image(Find.ByAlt(languageName)).Click(); }