Beispiel #1
0
        public bool CheckMinTicketTimeAndPrice(string UrlIfHFaild)
        {
            List <string> ticketTimes  = new List <string>();
            List <int>    ticketPrices = new List <int>();

            Pages.SearchResultPage searchResultPage = new Pages.SearchResultPage(driver, UrlIfHFaild);

            while (!searchResultPage.LinkSortTime.Displayed)
            {
            }
            searchResultPage.LinkSortTime.Click();

            int PriceFromLink = searchResultPage.GetPriceFromLinkByTime();

            while (ticketPrices.Count == 0)
            {
                ticketPrices = searchResultPage.GetTicketPrices();
            }

            return(searchResultPage.GetTicketPrices().First() == PriceFromLink);
        }
Beispiel #2
0
        public List <int> GetMinTicketPrices(string UrlIfHFaild)
        {
            List <int> ticketPrices = new List <int>();

            Pages.SearchResultPage searchResultPage = new Pages.SearchResultPage(driver, UrlIfHFaild);

            while (!searchResultPage.LinkSortPrice.Displayed)
            {
            }
            searchResultPage.LinkSortPrice.Click();

            while (ticketPrices.Count == 0)
            {
                ticketPrices = searchResultPage.GetTicketPrices();
            }
            return(ticketPrices);
        }