Class: UrlaubPage

UrlaubPage

Ab In Den Urlaub Page Class Methods


new UrlaubPage()

Source:

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
destination String
element WebElement

the element

Source:

checkPageName(expectedTitle)

Check Page Name

Parameters:
Name Type Description
expectedTitle String

name of the page

Source:

checkRange(a, b, x, y)

Check the range

Parameters:
Name Type Description
a String
b String
x String
y String
Source:
Returns:
Type
Boolean

clickButton(buttonToClick, waitForElement, scroll, scrollToElement)

Click Button

Parameters:
Name Type Default Description
buttonToClick String

css or xpath selector element for button

waitForElement String

css or xpath selector element for wait

scroll Boolean true

need scroll or not

scrollToElement String

css or xpath selector element for scroll

Source:

clickNextMonth(locator)

Click Next Month

Parameters:
Name Type Description
locator String

css or xpath selector element

Source:

countDirectFlights(count)

Count Direct Flights

Parameters:
Name Type Description
count Number
Source:

fillSearchOfferForm(data)

Fill Search Offer Form

Parameters:
Name Type Description
data Object

form data

Source:

findBestFit(data)

Find Best Fit

Parameters:
Name Type Description
data Object

form data

Source:

findBestHotel(data)

Change selections and find the best hotel

Parameters:
Name Type Description
data Object

form data

Source:

generateDateSelector(dateTd, dateObject, input)

Generate Date Selector

Parameters:
Name Type Description
dateTd String

css or xpath selector element

dateObject Object

Date object

input String

start / end

Source:
Returns:
  • css selector
Type
String

generateOffset(time)

Generate Offset

Parameters:
Name Type Description
time String
Source:
Returns:
Type
Number

getSelectedMonthYear(locator)

Get Selected Month and Year

Parameters:
Name Type Description
locator String

css or xpath selector element

Source:
Returns:
  • selected month and year
Type
Object

selectDestination(destination)

Select destination

Parameters:
Name Type Description
destination String
Source:

selectFirstOffer()

Select The First Offer

Source:

selectMostExpensiveHotel()

Select The Most Expensive Hotel

Source:

setAdults(locator)

Set Adults

Parameters:
Name Type Description
locator String

css or xpath selector element

Source:

setDate(dateObject, locatorNextMonth, locatorSelectedMonthYear, input, pageName)

Set Date

Parameters:
Name Type Description
dateObject Object

Date object

locatorNextMonth String

css or xpath selector element for next month

locatorSelectedMonthYear String

css or xpath selector element for selected month year

input String

start / end

pageName String

name of the page

Source:

setDateRange(startDate, returnDate, locatorStartDate, locatorNextStartMonth, locatorSelectedStartMonthYear, locatorNextReturnMonth, locatorSelectedReturnMonthYear, pageName)

Set Date Range

Parameters:
Name Type Description
startDate String
returnDate String
locatorStartDate String
locatorNextStartMonth String
locatorSelectedStartMonthYear String
locatorNextReturnMonth String
locatorSelectedReturnMonthYear String
pageName String
Source:

setTraveller(noOfAdults, noOfChildren)

Set Traveller

Parameters:
Name Type Default Description
noOfAdults Number

of adults

noOfChildren Number 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
expectedSortedBy String

sorted by

Source: