예제 #1
0
        /// <summary>
        /// Log into the application using the given credentials.
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public HotelSearchPage EnterCredentials(string username, string password)
        {
            this.Username = username;
            this.Password = password;
            HotelSearchPage hotelSearchPage = Login();

            return(hotelSearchPage);
        }
예제 #2
0
 public void GivenThatImLoggedInAtPinSight()
 {
     _driver          = WebDriverFactory.Create();
     _hotelSearchPage = new HotelSearchPage(_driver);
     Assert.IsTrue(_driver.Title.Equals("P UAT Agency(987654) :: Home"));
 }