Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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))));
 }
Exemplo n.º 3
0
 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))));
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
        /// <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;
        }
Exemplo n.º 6
0
 /// <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));
 }
Exemplo n.º 7
0
 public void WhenIClickLanguageIcon(string languageName)
 {
     IEInstance.Div(Find.ByClass("language-object")).Image(Find.ByAlt(languageName)).Click();
 }