예제 #1
0
 def play_video(self):
     modal = Modal(self)
     self.find_element(*self._video_play_locator).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #2
0
 def open_legacy_other_platforms_modal(self):
     modal = Modal(self)
     self.find_element(*self._legacy_platforms_modal_link_locator).click()
     self.wait.until(lambda s: modal.displays(
         self._legacy_platforms_modal_content_locator))
     return modal
예제 #3
0
 def play(self):
     modal = Modal(self)
     self._root.click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #4
0
 def open_modal(self, locator):
     modal = Modal(self)
     self.find_element(*locator).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #5
0
파일: devices.py 프로젝트: trigga1/bedrock
 def get_a_phone(self):
     modal = Modal(self)
     self.find_element(self._get_phone_button_locator).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #6
0
 def open_sign_up_modal(self):
     modal = Modal(self)
     self.find_element(*self._modal_link_locator).click()
     self.wait.until(lambda s: modal.displays(self._newsletter_locator))
     return modal
예제 #7
0
 def show_schedule(self):
     modal = Modal(self)
     el = self.find_element(self._schedule_locator)
     self.MenuItem(self.page, root=el).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #8
0
 def open_biography(self, value):
     modal = Modal(self)
     self.find_element(*(By.ID, value)).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #9
0
 def open_sign_up_modal(self):
     modal = Modal(self)
     self.find_element(*self._modal_link_locator).click()
     self.wait.until(lambda s: modal.displays(self._newsletter_locator))
     return modal
예제 #10
0
 def open_other_platforms_modal(self):
     modal = Modal(self)
     self.find_element(*self._modal_link_locator).click()
     self.wait.until(lambda s: modal.displays(self._modal_content_locator))
     return modal
예제 #11
0
 def click_get_it_now(self):
     modal = Modal(self)
     self.find_element(self._get_it_now_button_locator).click()
     self.wait.until(lambda s: modal.is_displayed)
     return modal
예제 #12
0
 def open_firefox_account_modal(self):
     modal = Modal(self)
     self.download_button.click()
     self.wait.until(
         lambda s: modal.displays(self._account_modal_content_locator))
     return modal
예제 #13
0
 def open_firefox_account_modal(self):
     modal = Modal(self)
     self.download_button.click()
     self.wait.until(lambda s: modal.displays(self._account_modal_content_locator))
     return modal