def open_other_platforms_modal(self): modal = ModalProtocol(self) self.find_element(*self._platforms_modal_link_locator).click() self.wait.until( lambda s: modal.displays(self._platforms_modal_content_locator)) return modal
def open_join_firefox_modal(self): modal = ModalProtocol(self) self.find_element(*self._download_button_locator).click() self.wait.until( lambda s: modal.displays(self._join_firefox_modal_content_locator)) return modal
def open_biography(self, value): modal = ModalProtocol(self) self.find_element(*(By.ID, value)).click() self.wait.until(lambda s: modal.is_displayed) return modal
def open_modal(self, locator): modal = ModalProtocol(self) self.find_element(*locator).click() self.wait.until(lambda s: modal.is_displayed) return modal
def play_video(self): modal = ModalProtocol(self) self.find_element(*self._video_play_locator).click() self.wait.until(lambda s: modal.is_displayed) return modal
def open_other_platforms_modal(self): modal = ModalProtocol(self) self.find_element(*self._platforms_modal_link_locator).click() self.wait.until(lambda s: modal.displays(self._platforms_modal_content_locator)) return modal