private FramePageProxy <T> MenuClickNormalPage <T>(IOperationSymbolContainer contanier) where T : Entity { OperationIsDisabled(contanier); var result = new FramePageProxy <T>(this.ResultTable.Selenium); return(result); }
public FramePageProxy <T> CreateInPlace <T>() where T : ModifiableEntity { SearchControl.CreateButton.Find().Click(); var result = new FramePageProxy <T>(this.Selenium); return(result); }
public FramePageProxy <T> CreateInTab <T>() where T : ModifiableEntity { var oldCount = Selenium.WindowHandles.Count; SearchControl.CreateButton.Find().Click(); Selenium.Wait(() => Selenium.WindowHandles.Count > oldCount); var windowHandles = Selenium.WindowHandles; var currentIndex = windowHandles.IndexOf(Selenium.CurrentWindowHandle); Selenium.SwitchTo().Window(windowHandles[currentIndex + 1]); var result = new FramePageProxy <T>(this.Selenium); result.OnDisposed += () => { Selenium.SwitchTo().Window(windowHandles[currentIndex]); }; return(result); }