예제 #1
0
        public Flights DoSearch(Boolean check2Scales = true, string dest = "Barcelona, España (BCN-Todos los aeropuertos)")
        {
            FlyButton.Click();
            OrigenTxtBox.SendKeys("Chihuahua, Chihuahua, México (CUU-A. Internacional General Roberto Fierro Villalobos)");
            DestTxtBox.SendKeys(dest);
            DateDep.Click(); //some times this node isn't visible it is required to clean and build to run propertly I didn't figure it out why
            DepDate.Click();
            DateRet.Click();
            RetDate.Click();
            SubmitBton.Click();
            WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromMilliseconds(30000));

            wait.Until(ExpectedConditions.ElementIsVisible(By.Id("stopFilter_stops-2")));
            if (check2Scales)
            {
                driver.FindElement(By.Id("stopFilter_stops-2")).Click();
            }

            return(new Flights());
        }
예제 #2
0
        public Hotels DoSearchByHotelFly()
        {
            FlyButton.Click();
            OrigenTxtBox.SendKeys("Chihuahua, Chihuahua, México (CUU-A. Internacional General Roberto Fierro Villalobos)");
            DestTxtBox.SendKeys("Barcelona, España (BCN-Todos los aeropuertos)");

            DateDep.Click();
            DepDate.Click();
            DateRet.Click();
            RetDate.Click();
            FlyHotelButton.Click();
            SubmitBton.Click();
            try
            {
                WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromMilliseconds(30000));
                wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[@class='imgLoading']")));
            }catch (TimeoutException tex)
            {
                throw new Exception();
            }

            return(new Hotels());
        }
예제 #3
0
        void ReleaseDesignerOutlets()
        {
            if (AbilitiesView != null)
            {
                AbilitiesView.Dispose();
                AbilitiesView = null;
            }

            if (AttacksEditorButton != null)
            {
                AttacksEditorButton.Dispose();
                AttacksEditorButton = null;
            }

            if (AttacksView != null)
            {
                AttacksView.Dispose();
                AttacksView = null;
            }

            if (BurrowButton != null)
            {
                BurrowButton.Dispose();
                BurrowButton = null;
            }

            if (ClimbButton != null)
            {
                ClimbButton.Dispose();
                ClimbButton = null;
            }

            if (FlyButton != null)
            {
                FlyButton.Dispose();
                FlyButton = null;
            }

            if (FlyQualityButton != null)
            {
                FlyQualityButton.Dispose();
                FlyQualityButton = null;
            }

            if (MeleeButton != null)
            {
                MeleeButton.Dispose();
                MeleeButton = null;
            }

            if (RangedButton != null)
            {
                RangedButton.Dispose();
                RangedButton = null;
            }

            if (ReachButton != null)
            {
                ReachButton.Dispose();
                ReachButton = null;
            }

            if (SpaceButton != null)
            {
                SpaceButton.Dispose();
                SpaceButton = null;
            }

            if (SpecialAttacksButton != null)
            {
                SpecialAttacksButton.Dispose();
                SpecialAttacksButton = null;
            }

            if (SpeedButton != null)
            {
                SpeedButton.Dispose();
                SpeedButton = null;
            }

            if (SpeedView != null)
            {
                SpeedView.Dispose();
                SpeedView = null;
            }

            if (SpellLikeAbilitiesButton != null)
            {
                SpellLikeAbilitiesButton.Dispose();
                SpellLikeAbilitiesButton = null;
            }

            if (SpellsKnownButton != null)
            {
                SpellsKnownButton.Dispose();
                SpellsKnownButton = null;
            }

            if (SpellsPreparedButton != null)
            {
                SpellsPreparedButton.Dispose();
                SpellsPreparedButton = null;
            }

            if (SwimButton != null)
            {
                SwimButton.Dispose();
                SwimButton = null;
            }
        }