Members
-
elements
-
Get page elements
- Source:
Methods
-
checkAndClickCookieBox()
-
Check and Click Cookie Box
- Source:
-
checkAndClickOrEnter(destination, element)
-
Check And Click Or Enter
Parameters:
Name Type Description destinationString elementWebElement the element
- Source:
-
checkPageName(expectedTitle)
-
Check Page Name
Parameters:
Name Type Description expectedTitleString name of the page
- Source:
-
checkRange(a, b, x, y)
-
Check the range
Parameters:
Name Type Description aString bString xString yString - Source:
Returns:
- Type
- Boolean
-
clickButton(buttonToClick, waitForElement, scroll, scrollToElement)
-
Click Button
Parameters:
Name Type Default Description buttonToClickString css or xpath selector element for button
waitForElementString css or xpath selector element for wait
scrollBoolean true need scroll or not
scrollToElementString css or xpath selector element for scroll
- Source:
-
clickNextMonth(locator)
-
Click Next Month
Parameters:
Name Type Description locatorString css or xpath selector element
- Source:
-
countDirectFlights(count)
-
Count Direct Flights
Parameters:
Name Type Description countNumber - Source:
-
fillSearchOfferForm(data)
-
Fill Search Offer Form
Parameters:
Name Type Description dataObject form data
- Source:
-
findBestFit(data)
-
Find Best Fit
Parameters:
Name Type Description dataObject form data
- Source:
-
findBestHotel(data)
-
Change selections and find the best hotel
Parameters:
Name Type Description dataObject form data
- Source:
-
generateDateSelector(dateTd, dateObject, input)
-
Generate Date Selector
Parameters:
Name Type Description dateTdString css or xpath selector element
dateObjectObject Date object
inputString start / end
- Source:
Returns:
- css selector
- Type
- String
-
generateOffset(time)
-
Generate Offset
Parameters:
Name Type Description timeString - Source:
Returns:
- Type
- Number
-
getSelectedMonthYear(locator)
-
Get Selected Month and Year
Parameters:
Name Type Description locatorString css or xpath selector element
- Source:
Returns:
- selected month and year
- Type
- Object
-
selectDestination(destination)
-
Select destination
Parameters:
Name Type Description destinationString - Source:
-
selectFirstOffer()
-
Select The First Offer
- Source:
-
selectMostExpensiveHotel()
-
Select The Most Expensive Hotel
- Source:
-
setAdults(locator)
-
Set Adults
Parameters:
Name Type Description locatorString css or xpath selector element
- Source:
-
setDate(dateObject, locatorNextMonth, locatorSelectedMonthYear, input, pageName)
-
Set Date
Parameters:
Name Type Description dateObjectObject Date object
locatorNextMonthString css or xpath selector element for next month
locatorSelectedMonthYearString css or xpath selector element for selected month year
inputString start / end
pageNameString name of the page
- Source:
-
setDateRange(startDate, returnDate, locatorStartDate, locatorNextStartMonth, locatorSelectedStartMonthYear, locatorNextReturnMonth, locatorSelectedReturnMonthYear, pageName)
-
Set Date Range
Parameters:
Name Type Description startDateString returnDateString locatorStartDateString locatorNextStartMonthString locatorSelectedStartMonthYearString locatorNextReturnMonthString locatorSelectedReturnMonthYearString pageNameString - Source:
-
setTraveller(noOfAdults, noOfChildren)
-
Set Traveller
Parameters:
Name Type Default Description noOfAdultsNumber of adults
noOfChildrenNumber 0 of children
- Source:
-
verifyFlightTimeOfFirstResult()
-
Verify Flight Time Of First Result
- Source:
-
verifyHotelName()
-
Verify the name of the hotel
- Source:
-
verifySorted(expectedSortedBy)
-
Verify Sorted
Parameters:
Name Type Description expectedSortedByString sorted by
- Source: