/// <summary>
        /// Gets a value indicating whether expected page is displayed or not
        /// </summary>
        /// <param name="throwWhenNotOnPage">Whether <see cref="NotOnPageException"/> should be thrown if expected page is not displayed</param>
        /// <returns>True if expected page is displayed, false otherwise</returns>
        /// <exception cref="NotOnPageException">If not on the expected page and <paramref name="throwWhenNotOnPage"/> is true</exception>
        public bool Confirm(bool throwWhenNotOnPage)
        {
            if (_allValid)
            {
                return(true);
            }

            var filePath = $"{ExecutionSettings.CurrentTestResultsPath}\\_NotOn{_pageName.Replace(" ", "")}Page";

            ScreenshotHelper.ForceTakeScreenshot(_driver, filePath, _stringBuilder.ToString());

            if (throwWhenNotOnPage)
            {
                throw new NotOnPageException(_stringBuilder.ToString());
            }

            return(false);
        }