private bool checkIfDropDownFieldIsVisible(EditReleaseMetadataDropDownComponent dropDownField) { var elementExist = dropDownField.InputDropDown.FindElements( By.CssSelector(".kit-validatee.kit-validatee-base-BLACKCURRANT_14.isCollapsed")); return(elementExist.Count != 1); }
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)); }
private ProjectReleaseInformationPage ExpandNonSearchableDropDown(EditReleaseMetadataDropDownComponent dropDownField) { dropDownField.DropDownExpander.Click(); return(new ProjectReleaseInformationPage(this._driver)); }
private static void ChooseFromNonSearchableDropDown( EditReleaseMetadataDropDownComponent dropDownField, int field, string selection) => dropDownField.RootDropDownElement.SelectFromStaticDropDown(selection);
private static void ExpandNonSearchableDropDown(this IWebElement element, EditReleaseMetadataDropDownComponent dropDownField) { dropDownField.DropDownExpander.Click(); }
public static List <string> ReadAllValidationMessagesForDropDownField(this EditReleaseMetadataDropDownComponent field, string validationType) { IList <IWebElement> errorMessages = field.ListOfValidationMessages.ReturnWarnings(validationType); return(field.InputDropDown.ReadAllTextMessagesReturnedInWarning(errorMessages)); }