예제 #1
0
        public void Test_PostPage_Answer()
        {
            // Arrange
            string      filename    = "ids.xlsx";
            string      dir         = Directory.GetCurrentDirectory();
            string      path        = Path.Combine(dir, filename);
            var         user        = Manager.GetUsers(path, "B")[0];
            var         driver      = Routine.Init_driver();
            HomePage    homePage    = new HomePage(driver, "https://www.instagram.com");
            LoginPage   loginPage   = homePage.GoToLoginPage();
            ProfilePage profilePage = loginPage.Login(user.id, user.password);
            PostPage    post        = profilePage.Find_Calling(user);

            // Action
            post.Answer(user);
        }