def clickOnExperiences(self): """ Click on experience tab :return: None """ commonFunctionsUI.isElementPresentByXPath( selector=self.locators.experiencesLink) commonFunctionsUI.clickByXPath(selector=self.locators.experiencesLink)
def clickOnSearch(self): """ Click on the search button :return: None """ commonFunctionsUI.isElementPresentByXPath( selector=self.locators.search_button) commonFunctionsUI.clickByXPath(selector=self.locators.search_button)
def waitAndAcceptCookies(self): """ Click ok in cookies popup :return: None """ commonFunctionsUI.isElementPresentByXPath( selector=self.locators.acceptCookiesButton) commonFunctionsUI.clickByXPath( selector=self.locators.acceptCookiesButton)
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)
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)
def checkBookingFormLoad(self): commonFunctionsUI.isElementPresentByXPath( selector=self.locators.booking_form)