当前位置: 首页>>代码示例>>Python>>正文


Python FirefoxTestCase.tearDown方法代码示例

本文整理汇总了Python中firefox_ui_harness.FirefoxTestCase.tearDown方法的典型用法代码示例。如果您正苦于以下问题:Python FirefoxTestCase.tearDown方法的具体用法?Python FirefoxTestCase.tearDown怎么用?Python FirefoxTestCase.tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在firefox_ui_harness.FirefoxTestCase的用法示例。


在下文中一共展示了FirefoxTestCase.tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.browser.switch_to()
         self.identity_popup.close(force=True)
         self.windows.close_all([self.browser])
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:Pike,项目名称:firefox-ui-tests,代码行数:9,代码来源:test_ev_certificate.py

示例2: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     # Close the autocomplete results
     try:
         self.browser.navbar.locationbar.autocomplete_results.close()
         self.places.restore_default_bookmarks()
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:sydvicious,项目名称:firefox-ui-tests,代码行数:9,代码来源:test_suggest_bookmarks.py

示例3: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.identity_popup.close(force=True)
     except NoSuchElementException:
         # TODO: A NoSuchElementException may be thrown here when tests accessing the
         # identity_popup.popup element are skipped.
         pass
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:sydvicious,项目名称:firefox-ui-tests,代码行数:11,代码来源:test_toolbars.py

示例4: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.autocomplete_results.close(force=True)
     except NoSuchElementException:
         # TODO: A NoSuchElementException is thrown here when tests accessing the
         # autocomplete_results element are skipped.
         pass
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:myrdd,项目名称:firefox-ui-tests,代码行数:11,代码来源:test_toolbars.py

示例5: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.identity_popup.close(force=True)
         self.windows.close_all([self.browser])
     except NoSuchElementException:
         # TODO: A NoSuchElementException may be thrown here when the test is skipped
         # as under xvfb.
         pass
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:12,代码来源:test_ev_certificate.py

示例6: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:4,代码来源:test_l10n.py

示例7: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.utils.remove_perms('www.itisatrap.org', 'safe-browsing')
         self.browser.tabbar.close_all_tabs([self.browser.tabbar.tabs[0]])
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:8,代码来源:test_safe_browsing_notification.py

示例8: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.software_update.update_channel.default_channel = self.saved_channel
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:7,代码来源:test_software_update.py

示例9: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.identity_popup.close(force=True)
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:Pike,项目名称:firefox-ui-tests,代码行数:7,代码来源:test_mixed_script_content_blocking.py

示例10: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.autocomplete_results.close(force=True)
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:Pike,项目名称:firefox-ui-tests,代码行数:7,代码来源:test_favicon_in_autocomplete.py

示例11: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.browser.tabbar.close_all_tabs([self.browser.tabbar.tabs[0]])
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:Pike,项目名称:firefox-ui-tests,代码行数:7,代码来源:test_tabbar.py

示例12: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.marionette.execute_script("arguments[0].hidePopup();",
                                        script_args=[self.locationbar.notification_popup])
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:8,代码来源:test_mixed_script_content_blocking.py

示例13: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     self.prefs.restore_pref(homepage_pref)
     FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:5,代码来源:test_home_button.py

示例14: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.windows.close_all([self.browser])
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:Pike,项目名称:firefox-ui-tests,代码行数:7,代码来源:test_windows.py

示例15: tearDown

# 需要导入模块: from firefox_ui_harness import FirefoxTestCase [as 别名]
# 或者: from firefox_ui_harness.FirefoxTestCase import tearDown [as 别名]
 def tearDown(self):
     try:
         self.places.restore_default_bookmarks()
         self.places.remove_all_history()
     finally:
         FirefoxTestCase.tearDown(self)
开发者ID:IamAdiSri,项目名称:firefox-ui-tests,代码行数:8,代码来源:test_places.py


注:本文中的firefox_ui_harness.FirefoxTestCase.tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。