public string ValidateTrackingNumbers(string tNumbers) { string[] trackingNumbersText = tNumbers.Split(','); var trackingNumbersDom = _helper.GetElementsWait(this.trackingNumbers.findsBy); string result = string.Empty; foreach (string number in trackingNumbersText) { if (trackingNumbersDom.FirstOrDefault((el) => el.Text.Equals(number)) == null) { result = number; } } return(result); }
public bool ClickOnOrderNumber(string order) { var orderNumbers = _helper.GetElementsWait(this.orderNumber.findsBy); var element = orderNumbers.FirstOrDefault(num => num.Text.Equals(order)); if (element != null) { element.Click(); return(true); } return(false); }