private CalendarWindow LoadCalendarWindow()
        {
            CalendarWindow calendarWindow = null;

            ReadOnlyCollection <string> calendarNames = WebDriverHelper.Driver.WindowHandles;

            if (calendarNames.Count > 0)
            {
                string calendarWindowName = calendarNames.FirstOrDefault(x => x != CurrentWindownName);

                if (!string.IsNullOrEmpty(calendarWindowName))
                {
                    var calendarWindowsDriver = WebDriverHelper.Driver.SwitchTo().Window(calendarWindowName);

                    calendarWindow = new CalendarWindow(calendarWindowsDriver);
                    calendarWindow.ParentWindowName = CurrentWindownName;
                    return(calendarWindow);
                }
            }

            return(calendarWindow);
        }
        private CalendarWindow LoadCalendarWindow()
        {
            CalendarWindow calendarWindow = null;

            ReadOnlyCollection<string> calendarNames = WebDriverHelper.Driver.WindowHandles;

            if (calendarNames.Count > 0)
            {
                string calendarWindowName = calendarNames.FirstOrDefault(x => x != CurrentWindownName);

                if (!string.IsNullOrEmpty(calendarWindowName))
                {
                    var calendarWindowsDriver = WebDriverHelper.Driver.SwitchTo().Window(calendarWindowName);

                    calendarWindow = new CalendarWindow(calendarWindowsDriver);
                    calendarWindow.ParentWindowName = CurrentWindownName;
                    return calendarWindow;
                }
            }

            return calendarWindow;
        }