def write_a_review(self, rating, body): self.set_review_rating(rating) self.enter_review_with_text(body) self.selenium.find_element(*self._submit_review_button_locator).click() self.wait_for_notification('Your review was successfully posted. Thanks!') from pages.desktop.consumer_pages.details import Details return Details(self.testsetup)
def write_a_review(self, rating, body): self.set_review_rating(rating) self.delete_review() self.enter_review_with_text(body) self.selenium.find_element(*self._submit_review_button_locator).click() from pages.desktop.consumer_pages.details import Details return Details(self.testsetup)
def click_name(self): self._root_element.find_element(*self._name_locator).click() from pages.desktop.consumer_pages.details import Details return Details(self.testsetup, self.name)
def click_app(self): app_name = self.name self._root_element.click() from pages.desktop.consumer_pages.details import Details return Details(self.testsetup, app_name)
def click_name(self): name = self.name self.find_element(*self._name_locator).click() from pages.desktop.consumer_pages.details import Details return Details(self.testsetup, name, first_access=True)
def click_on_first_app(self): self.selenium.find_element(*self._first_app_locator).click() from pages.desktop.consumer_pages.details import Details return Details(self.testsetup)