Example #1
0
def test_search_valid_data(data):
    driver = InitiateDriver.start_browser()
    search = SearchPage.SearchPage(driver)
    driver.find_element_by_xpath(ConfigReader.read_elements('Search', 'search_icon')).click()
    search.enter_key(data[0])
    driver.find_element_by_xpath(ConfigReader.read_elements('Search', 'search_button')).click()
    driver.close()
Example #2
0
def test_one_way_flight_booking(data):
    driver = InitiateDriver.start_browser()
    flights = flight_booking.FlightBooking(driver)
    flights.book_one_way_ticket(data[0], data[1])

    InitiateDriver.close_browser()
def test_booking_bus():
    driver = InitiateDriver.start_browser()
    hotel = bus_booking.BusBooking(driver)
    hotel.book_bus("Mysore", "ooty")

    InitiateDriver.close_browser()
Example #4
0
def test_search_invalid_data():
    driver = InitiateDriver.start_browser()
    driver.find_element_by_xpath(ConfigReader.read_elements('Search', 'search_icon')).click()
    driver.find_element_by_xpath(ConfigReader.read_elements('Search', 'search_textbox')).send_keys('invalid')
    driver.find_element_by_xpath(ConfigReader.read_elements('Search', 'search_button')).click()
    driver.close()