/// <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); }
public void GivenThatImLoggedInAtPinSight() { _driver = WebDriverFactory.Create(); _hotelSearchPage = new HotelSearchPage(_driver); Assert.IsTrue(_driver.Title.Equals("P UAT Agency(987654) :: Home")); }