private FramePageProxy <T> MenuClickNormalPage <T>(IOperationSymbolContainer contanier) where T : Entity
        {
            OperationIsDisabled(contanier);
            var result = new FramePageProxy <T>(this.ResultTable.Selenium);

            return(result);
        }
示例#2
0
        public FramePageProxy <T> CreateInPlace <T>() where T : ModifiableEntity
        {
            SearchControl.CreateButton.Find().Click();

            var result = new FramePageProxy <T>(this.Selenium);

            return(result);
        }
示例#3
0
        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);
        }