Ejemplo n.º 1
0
        public bool AddedCarrier_UIVerify()
        {
            UIItem Lane                  = new UIItem("Routing Guide>> Lane", byLane, _driver);
            UIItem CarrierName           = new UIItem("Routing Guide>> CarrierName", byCarrierName, _driver);
            UIItem CarrierEffDateDisplay = new UIItem("Routing Guide>> CarrierEffDate", byCarrierEffDateDisplay, _driver);
            UIItem CarrierExpDateDisplay = new UIItem("Routing Guide>> CarrierExpDate", byCarrierExpDateDisplay, _driver);

            try
            {
                Assert.IsTrue(Lane.Click());
                _RoutingGuidePage.WaitUntilLoading();
                Assert.IsTrue(CarrierName.WaitUntilDisplayed());
                int index = CarrierEffDateDisplay.GetCountOfElements();
                CarrierExpDateDisplay.ScrollToElement(CarrierExpDateDisplay.ElementByIndex(index));
                Assert.IsFalse(CarrierEffDateDisplay.IsEditable());
                Assert.IsFalse(CarrierExpDateDisplay.IsEditable());
                Assert.IsTrue(carrierEffDate == Constants.Ignore ? true : CarrierEffDateDisplay.GetAllUIItems()[index - 1].UIVerify(carrierEffDate));
                Assert.IsTrue(carrierExpDate == Constants.Ignore ? true : CarrierExpDateDisplay.GetAllUIItems()[index - 1].UIVerify(carrierExpDate));
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public bool AddCarrier_UIVerify()
        {
            UIItem CarrierEffDate = new UIItem("Routing Guide>> CarrierEffDate", byCarrierEffDate, _driver);
            UIItem CarrierExpDate = new UIItem("Routing Guide>> CarrierExpDate", byCarrierExpDate, _driver);

            try
            {
                int index = CarrierEffDate.GetCountOfElements();
                CarrierExpDate.ScrollToElement(CarrierExpDate.ElementByIndex(index));
                Assert.IsTrue(carrierEffDate == Constants.Ignore ? true : CarrierEffDate.GetAllUIItems()[index - 1].UIVerify(carrierEffDate));
                Assert.IsTrue(carrierExpDate == Constants.Ignore ? true : CarrierExpDate.GetAllUIItems()[index - 1].UIVerify(carrierExpDate));
                return(true);
            }
            catch
            {
                return(false);
            }
        }