Esempio n. 1
0
        public void IE_Test2()
        {
            Console.WriteLine("Opened Test site");
            PageObjectsEAsite page1 = new PageObjectsEAsite();

            page1.EnterAllDetails("Ms.", "Tirumalasetty", "Naveen", "Prasad");
        }
        [Test] //FINAL REFACTORED - Page Object Model test
        public void Chrome_Test5()
        {
            PageObjectsEAsite page1 = new PageObjectsEAsite();

            page1.EnterAllDetails("Ms.", "Tirumalasetty", "Naveen", "Prasad");

            //if we are navigating to next page we use SecondPageClass page2=page1.EnterAllDetails("naveen");
        }
        [Test] //Page object Model (POM) test
        public void POM_ChromeTest3()
        {
            //Initialize the page by calling its reference
            PageObjectsEAsite page = new PageObjectsEAsite();

            page.txtInitial.SendKeys("Naveen");
            page.btnSave.Click();
        }