예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def open_modal(self, locator):
     modal = ModalProtocol(self)
     self.find_element(*locator).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #4
0
 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
예제 #5
0
 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