Пример #1
0
        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);
        }
Пример #2
0
        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);
        }