internal bool Execute(CommandParams param)
        {
            var driver     = param.Application.GetDriver();
            var count      = new GetOpenWindowCount();
            var numwindows = Convert.ToInt32(count.Execute(param));

            if (numwindows == 1)
            {
                throw new ContinueRetryException("No popup window was detected");
            }
            var switchcmd = new SwitchToChildWindow();

            switchcmd.Execute(param);
            return(true);
        }
Example #2
0
        internal bool Execute(CommandParams param)
        {
            var driver     = param.Application.GetDriver();
            var count      = new GetOpenWindowCount();
            var numwindows = Convert.ToInt32(count.Execute(param));

            if (numwindows > 1)
            {
                throw new ContinueRetryException("Popup window is still open");
            }
            var switchcmd = new SwitchToParentWindow();

            switchcmd.Execute(param);
            return(true);
        }