public void WhenILoginAndDoNotEnterAnyOneOfTheMandatoryField() { BaseClass baseClass = new BaseClass(driver); //baseClass.BrowserFunctions(); baseClass.Login(); baseClass.SearchHotel(); baseClass.SelectHotel(); BookHotelPage bookHotel = new BookHotelPage(driver); bookHotel.EnterName("Vidhya", "Venugan"); bookHotel.BillingAddress("12 Ebony Way,Tarneit -3029"); bookHotel.CreditCardNumber("1234567812345678"); bookHotel.CreditCardType("VISA"); bookHotel.CreditCardExpiryMonth("March"); bookHotel.CreditCardExpiryYear("2020"); //bookHotel.CVVNumber("4567"); bookHotel.ClickBookNow(); }