Ejemplo n.º 1
0
        private static bool IsGeneratedMessageVisible()
        {
            GeneralPage.SwitchToFrame(ID.reportFrame);
            if (!(GeneralPage.IsElementVisible(ID.generatedMessage)))
            {
                log.Info("Reports generated message was not found.");
            }
            else
            {
                log.Info("Reports generated message was found.");
            }

            return(GeneralPage.IsElementVisible(ID.generatedMessage));
        }
Ejemplo n.º 2
0
        private static bool IsViewDropDownOptionVisible()
        {
            GeneralPage.SwitchToFrame(ID.mainGridFrame);
            GeneralPage.ClickOnObject(ID.viewChooser);
            if (!(GeneralPage.IsElementVisible(ID.allServicesViewDropdownOption)))
            {
                log.Error("All Services view dropdown option was not found.");
            }
            else
            {
                log.Info("All Services view dropdown option was found.");
            }

            return(GeneralPage.IsElementVisible(ID.allServicesViewDropdownOption));
        }
Ejemplo n.º 3
0
        private static bool IsPageTicketNumberVisible(string ticketNum)
        {
            GeneralPage.SwitchToFrame(ID.kbArticleFrame);
            bool isTicketNumberVisible = GeneralPage.ExtractTextFromElement(ID.ticketInfo).Contains(ticketNum);

            isTicketNumberVisible &= GeneralPage.ExtractTextFromElement(ID.ticketInfo).Contains("KB");

            if (!(isTicketNumberVisible))
            {
                log.Info("KB ticket details ticket number was not found.");
            }
            else
            {
                log.Info("KB ticket details ticket number was found.");
            }
            return(isTicketNumberVisible);
        }