Esempio n. 1
0
        public void UsernameFieldLoginFormTest()
        {
            PropertiesCollection.driver.Navigate().GoToUrl("http://testing.todorvachev.com");

            HomePageObject      homePage      = new HomePageObject();
            TestCasesPageObject testCasesPage = new TestCasesPageObject();
            UsernameFieldLoginFormPageObject usernameFieldLoginFormPage = new UsernameFieldLoginFormPageObject();

            testCasesPage = homePage.ClickTestCasesPage();
            usernameFieldLoginFormPage = testCasesPage.ClickUsernameFieldLoginFormPage();

            if (usernameFieldLoginFormPage.imgUsernameField.Displayed)
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail();
            }
        }