예제 #1
0
파일: FormPage.cs 프로젝트: vp05/Docler
        public Boolean isPageLoadedProperly()
        {
            IWebElement formMenuButtonContainer;
            String      formButtonContainerClass = "";

            Thread.Sleep(2000);

            formMenuButtonContainer  = _commonPage.findElement(FORM_MENU_BUTTON_CONTAINER);
            formButtonContainerClass = formMenuButtonContainer.GetAttribute("class"); //has to be li.active

            if (formMenuButtonContainer != null && formButtonContainerClass.Equals("active"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
파일: HomePage.cs 프로젝트: vp05/Docler
        public Boolean isPageLoadedProperly()
        {
            IWebElement homeMenuButtonContainer;
            IWebElement homePageH1;
            String      homeButtonContainerClass = "";
            String      homePageH1Text           = "";

            Thread.Sleep(2000);

            homeMenuButtonContainer  = _commonPage.findElement(HomePage.HOME_MENU_BUTTON_CONTAINER);
            homeButtonContainerClass = homeMenuButtonContainer.GetAttribute("class"); //has to be li.active

            homePageH1     = _commonPage.findElement(HomePage.WELCOME_HEADER);
            homePageH1Text = homePageH1.Text;

            if (homeMenuButtonContainer != null && homePageH1 != null && homeButtonContainerClass.Equals("active") && homePageH1Text.Equals("Welcome to the Docler Holding QA Department"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #3
0
파일: ErrorPage.cs 프로젝트: vp05/Docler
        public Boolean isPageLoadedProperly()
        {
            IWebElement errorH1;
            String      errorH1Text = "";

            Thread.Sleep(2000);

            errorH1     = _commonPage.findElement(ERROR_H1);
            errorH1Text = errorH1.Text; //has to be li.active

            if (errorH1 != null && errorH1Text.Equals("404 Error: File not found :-("))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }