public BladeViewPage ToggleBladeSize(string name) { BladeViewItem blade = this.BladeView.GetBlade(name); blade.EnlargeButton.Click(); return(this); }
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); }
private static Button FindFirstBladeButton(BladeViewItem blade, string type, string name) { return(blade.Element.FindElement(By.XPath($".//*[@ClassName='{type}'][@Name='{name}']"))); }