Exemplo n.º 1
0
 def clickOnExperiences(self):
     """
     Click on experience tab
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.experiencesLink)
     commonFunctionsUI.clickByXPath(selector=self.locators.experiencesLink)
Exemplo n.º 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)
Exemplo n.º 3
0
 def waitAndAcceptCookies(self):
     """
     Click ok in cookies popup
     :return: None
     """
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.acceptCookiesButton)
     commonFunctionsUI.clickByXPath(
         selector=self.locators.acceptCookiesButton)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 6
0
 def checkBookingFormLoad(self):
     commonFunctionsUI.isElementPresentByXPath(
         selector=self.locators.booking_form)