Example #1
0
        public BladeViewPage ToggleBladeSize(string name)
        {
            BladeViewItem blade = this.BladeView.GetBlade(name);

            blade.EnlargeButton.Click();
            return(this);
        }
Example #2
0
        public BladeViewPage OpenBlades()
        {
            BladeViewItem firstBlade = this.BladeView.GetBlade("FirstBlade");

            FindFirstBladeButton(firstBlade, "ToggleButton", "Default Blade").Click();
            this.ScrollBack();

            FindFirstBladeButton(firstBlade, "ToggleButton", "Custom Titlebar").Click();
            this.ScrollBack();

            FindFirstBladeButton(firstBlade, "ToggleButton", "Custom Close Button").Click();
            this.ScrollBack();

            FindFirstBladeButton(firstBlade, "Button", "Add Blade").Click();
            this.ScrollBack();

            return(this);
        }
Example #3
0
 private static Button FindFirstBladeButton(BladeViewItem blade, string type, string name)
 {
     return(blade.Element.FindElement(By.XPath($".//*[@ClassName='{type}'][@Name='{name}']")));
 }