def click_on_enter_button(browser): hotel = HotelsSearchPage(browser) hotel.hit_enter_button()
def click_on_search(driver): hotel = HotelsSearchPage(driver) hotel.click_on_search_button()
def result_is_displayed(driver): hotel = HotelsSearchPage(driver) hotel.validate_results()
def enter_family(driver, family_size): hotel = HotelsSearchPage(driver) hotel.enter_family_size(family_size)
def enter_checkin_checkout(driver, check_in, check_out): hotel = HotelsSearchPage(driver) hotel.enter_date(check_in, check_out)
def enter_city(driver, city): hotel = HotelsSearchPage(driver) hotel.enter_city(city, driver)
def result_is_maintained(browser): hotel = HotelsSearchPage(browser) hotel.validate_results()
def choose_hotel(browser): hotel = HotelsSearchPage(browser) hotel.click_on_details_button()