private static IWebElement getCancelButton(IWebElement elementContainer, int batch) { ReleaseInputBatchComponent changedBatch = null; changedBatch = FindSpecificComponent(elementContainer, batch); if (changedBatch == null) { throw new Exception("The batch is not changed"); } return(changedBatch.Cancel); }
private IWebElement getCancelButton(int batch) { ReleaseInputBatchComponent changedBatch = null; if (_webInputBatches.Count == 0) { changedBatch = FindSpecificComponent(batch); } if (changedBatch == null) { throw new Exception("The batch is not changed"); } return(changedBatch.Cancel); }
private List <string> readValidationsForBatch(int batch, String validationType) { ReleaseInputBatchComponent InputBatch = null; if (_webInputBatches.Count == 0) { InputBatch = FindSpecificComponent(batch); } else { InputBatch = _webInputBatches.ElementAt(batch); } var _listOfErrors = InputBatch.InputFields.ElementAt(0).ListOfErrorMessages; var errorMessages = _listOfErrors.ReturnWarnings(validationType); return(readAllTextMesaggesReturnedInWarning(errorMessages)); }
private ValidatedInputFields FindElementInBatchInputs(int batch, int index) { ReleaseInputBatchComponent batchInput = FindSpecificComponent(batch); return(batchInput.InputFields.ElementAt(index)); }
public static bool AreActionButtonsDisplayed(this ReleaseInputBatchComponent element) { return(element.Submit.Displayed); }
private static ValidatedInputFields FindElementInBatchInputs(this IWebElement elementContainer, int batch, int index) { ReleaseInputBatchComponent batchInput = FindSpecificComponent(elementContainer, batch); return(batchInput.InputFields.ElementAt(index)); }