Exemple #1
0
        public void SetUp()
        {
            //Declare objects

            driver           = new ChromeDriver(@"C:\browserdrivers\chromedriver\");
            objDHHomePage    = new DHHomePage(driver);
            objDHFormPage    = new DHFormPage(driver);
            objDHHelloPage   = new DHHelloPage(driver);
            objDHErrorPage   = new DHErrorPage(driver);
            objDHSiteCommons = new DHSiteCommons(driver);
            driver.Manage().Window.Maximize();
        }
Exemple #2
0
 public void HomePageIsActive(String text)
 {
     if (text.Equals("home"))
     {
         objDHHomePage = new DHHomePage(driver);
         Debug.Assert(objDHHomePage.IsHomePageActive());
     }
     else if (text.Equals("form"))
     {
         objDHFormPage = new DHFormPage(driver);
         Debug.Assert(objDHFormPage.IsFormPageActive());
     }
     else //WRONG OPTION
     {
         Console.WriteLine("WRONG OPTION");
         Debug.Assert(false);
     }
 }
Exemple #3
0
        public void IamOnPage(String site_type)
        {
            objDHHomePage = new DHHomePage(driver);
            objDHFormPage = new DHFormPage(driver);


            if (site_type.Equals("home") | site_type.Equals("site"))
            {
                Debug.Assert(objDHHomePage.IamOnHomePage());
            }
            else if (site_type.Equals("form"))
            {
                Debug.Assert(objDHFormPage.IamOnFormPage());
            }
            else //wrong option
            {
                Console.WriteLine("WRONG OPTION");
                Debug.Assert(false);
            }
        }
Exemple #4
0
 public void ISubmitForm()
 {
     objDHFormPage = new DHFormPage(driver);
     objDHFormPage.ClickOnSubmitButton();
 }
Exemple #5
0
 public void EnterValueInput(String value)
 {
     objDHFormPage = new DHFormPage(driver);
     objDHFormPage.EnterValue(value);
 }
Exemple #6
0
 public void InputButtonVisible()
 {
     objDHFormPage = new DHFormPage(driver);
     objDHFormPage.CheckInputButton();
 }