//////////////////////////////////////////////////////////////////// // Helper test function to perform common SignIn routine private void PerformSignIn(FacebookHomeData p_FacebookHomeData) { // Verify driver is initialized Assert.IsNotNull(driver, "Driver initialization FAILED"); // Verify input SignInData Assert.IsNotNull(p_FacebookHomeData, "TestData load FAILED"); // Verify Home page is loaded FacebookHomePage homePage = new FacebookHomePage(driver); Assert.IsTrue(homePage.VerifyPage(), "FacebookHomePage VerifyPage() FAILED"); // Verify test data are set Assert.IsTrue(homePage.SetUserName(p_FacebookHomeData.userName), "SetUserName() FAILED"); Assert.IsTrue(homePage.SetPassword(p_FacebookHomeData.password), "SetPassword() FAILED"); // Verify SigIn button is clicked Assert.IsTrue(homePage.ClickLogIn(), "ClickSignIn() FAILED"); }