예제 #1
0
        private bool checkIfDropDownFieldIsVisible(EditReleaseMetadataDropDownComponent dropDownField)
        {
            var elementExist =
                dropDownField.InputDropDown.FindElements(
                    By.CssSelector(".kit-validatee.kit-validatee-base-BLACKCURRANT_14.isCollapsed"));

            return(elementExist.Count != 1);
        }
예제 #2
0
 private ProjectReleaseInformationPage ChooseFromNonSearchableDropDown(
     EditReleaseMetadataDropDownComponent dropDownField, int field, string selection)
 {
     if (dropDownField == null)
     {
         dropDownField = FindElementInBatchDropDown(ReleaseMetaDataBatches.MainGenreBatch,
                                                    field);
     }
     Thread.Sleep(1000);
     dropDownField.RootDropDownElement.SelectFromStaticDropDown(selection);
     return(new ProjectReleaseInformationPage(this._driver));
 }
예제 #3
0
 private ProjectReleaseInformationPage ExpandNonSearchableDropDown(EditReleaseMetadataDropDownComponent dropDownField)
 {
     dropDownField.DropDownExpander.Click();
     return(new ProjectReleaseInformationPage(this._driver));
 }
예제 #4
0
 private static void ChooseFromNonSearchableDropDown(
     EditReleaseMetadataDropDownComponent dropDownField, int field, string selection) => dropDownField.RootDropDownElement.SelectFromStaticDropDown(selection);
예제 #5
0
 private static void ExpandNonSearchableDropDown(this IWebElement element, EditReleaseMetadataDropDownComponent dropDownField)
 {
     dropDownField.DropDownExpander.Click();
 }
예제 #6
0
        public static List <string> ReadAllValidationMessagesForDropDownField(this EditReleaseMetadataDropDownComponent field, string validationType)
        {
            IList <IWebElement> errorMessages = field.ListOfValidationMessages.ReturnWarnings(validationType);

            return(field.InputDropDown.ReadAllTextMessagesReturnedInWarning(errorMessages));
        }