Example #1
0
        public void FilterFlights(string wayType)
        {
            var WaysType = new ToolbarBottom(Driver);

            Driver.Navigate().GoToUrl("https://www.phptravels.net/flightst");
            WaysType.FlightSearch(wayType);
        }
Example #2
0
        public void NavigationCheckAll(string page, string pageTitle)
        {
            var NavigationChecking = new ToolbarBottom(Driver);

            NavigationChecking.NavigationCheck(page, pageTitle);
            Assert.AreEqual(pageTitle, Driver.Title, "Ooops! Page was not loaded");
        }
Example #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            recipes = DataLoader.GetRecipes();

            var toolbarBg = FoodyTheme.SharedTheme.ToolbarBackgroundForSplitView(true);

            ToolbarBottom.SetBackgroundImage(toolbarBg, UIToolbarPosition.Bottom, UIBarMetrics.Default);

            var navbarBg = FoodyTheme.SharedTheme.NavigationBackgroundForSplitView(true);

            NavigationController.NavigationBar.SetBackgroundImage(navbarBg, UIBarMetrics.Default);

            DishTableView.WeakDelegate    = this;
            DishTableView.WeakDataSource  = this;
            DishTableView.BackgroundColor = UIColor.Clear;
            DishTableView.SeparatorStyle  = UITableViewCellSeparatorStyle.None;

            var label = new UILabel();

            label.BackgroundColor    = UIColor.Clear;
            label.Font               = UIFont.SystemFontOfSize(20);
            label.ShadowColor        = UIColor.Black;
            label.TextAlignment      = UITextAlignment.Center;
            label.TextColor          = UIColor.White;
            NavigationItem.TitleView = label;

            label.Text = "Dishes";
            label.SizeToFit();

            FoodyTheme.Apply(View);
        }
Example #4
0
        public void StarGrade(string starGradeNumber)
        {
            Driver.Navigate().GoToUrl("https://www.phptravels.net/hotels");
            ToolbarBottom starGrade = new ToolbarBottom(Driver);

            starGrade.ChangeStarGradeNumber(starGradeNumber);
            IWebElement StarGradeCheck = starGrade.StarGradeCheckNumber(starGradeNumber);

            Assert.IsTrue(StarGradeCheck.Selected, "Ooops!");
        }
        void ReleaseDesignerOutlets()
        {
            if (Category != null)
            {
                Category.Dispose();
                Category = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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