public void LoginButtonLoginFormTest() { PropertiesCollection.driver.Navigate().GoToUrl("http://testing.todorvachev.com"); HomePageObject homePage = new HomePageObject(); TestCasesPageObject testCasesPage = new TestCasesPageObject(); LoginButtonLoginFormPageObject loginButtonLoginFormPage = new LoginButtonLoginFormPageObject(); testCasesPage = homePage.ClickTestCasesPage(); loginButtonLoginFormPage = testCasesPage.ClickLoginButtonLoginFormPage(); if (loginButtonLoginFormPage.btnRegButton.Displayed) { Assert.Pass(); } else { Assert.Fail(); } }
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(); } }
public void ItemsCategoryDropDownMenuTest() { PropertiesCollection.driver.Navigate().GoToUrl("http://testing.todorvachev.com"); HomePageObject homePage = new HomePageObject(); TestCasesPageObject testCasesPage = new TestCasesPageObject(); ItemCategoryDropDownMenuPageObject itemCatDropDownPage = new ItemCategoryDropDownMenuPageObject(); testCasesPage = homePage.ClickTestCasesPage(); itemCatDropDownPage = testCasesPage.ClickItemCategoryDropDownMenuPage(); if (itemCatDropDownPage.imgDropDownMenu.Displayed) { Assert.Pass(); } else { Assert.Fail(); } }