示例#1
0
 def clickOnExperiences(self):
     """
     Click on experience tab
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.experiencesLink)
     commonFunctionsUI.clickByXPath(selector=self.locators.experiencesLink)
示例#2
0
 def clickOnSearch(self):
     """
     Click on the search button
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.search_button)
     commonFunctionsUI.clickByXPath(selector=self.locators.search_button)
示例#3
0
 def waitAndAcceptCookies(self):
     """
     Click ok in cookies popup
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.acceptCookiesButton)
     commonFunctionsUI.clickByXPath(
         selector=self.locators.acceptCookiesButton)
示例#4
0
 def clickOnNextMonthArrow(self):
     """
     Click on next month arroe
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.nextMonthArrow)
     commonFunctionsUI.isElementDisplayedByXPath(
         selector=self.locators.nextMonthArrow)
     commonFunctionsUI.clickByXPath(selector=self.locators.nextMonthArrow)
示例#5
0
 def clickOnFirstSearchResult(self):
     """
     It will click on the first result of destination
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.firstDestinationOption)
     if not commonFunctionsUI.clickByXPath(
             selector=self.locators.firstDestinationOption):
         commonFunctionsUI.clickByXPath(
             selector=self.locators.firstDestinationOption)
示例#6
0
 def checkBookingFormLoad(self):
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.booking_form)