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


Python CrashStatsHomePage.can_find_text方法代码示例

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


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

示例1: test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium 
     csp = CrashStatsHomePage(self.selenium)
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers by Domain')
         Assert.equal(details['product'], cstc.product_header)
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:9,代码来源:test_crash_reports.py

示例2: test_that_current_version_selected_in_top_crashers_by_url_header_for_seamonkey

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_current_version_selected_in_top_crashers_by_url_header_for_seamonkey(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('SeaMonkey')
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers by URL')
         Assert.equal(details['product'], cstc.product_header)
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:10,代码来源:test_crash_reports.py

示例3: test_that_current_version_selected_in_top_crashers_header_for_fennec

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_current_version_selected_in_top_crashers_header_for_fennec(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Fennec')
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers')
         Assert.equal(details['product'], cstc.product_header)
开发者ID:tobbi,项目名称:Socorro-Tests,代码行数:10,代码来源:test_crash_reports.py

示例4: test_that_advanced_search_view_signature_for_seamonkey_crash

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_advanced_search_view_signature_for_seamonkey_crash(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('SeaMonkey')
     if not csp.can_find_text('no data'):
         cs_advanced = csp.click_advanced_search()
         cs_advanced.filter_reports()
         if not cs_advanced.can_find_text('No Data'): 
             signature = cs_advanced.click_first_signature()
             Assert.true(signature in cs_advanced.page_heading)
开发者ID:tobbi,项目名称:Socorro-Tests,代码行数:12,代码来源:test_smoke_tests.py

示例5: test_that_reports_form_has_same_product_for_fennec

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_reports_form_has_same_product_for_fennec(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Fennec')
     page_title = csp.page_title
     Assert.true('Fennec' in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
开发者ID:tobbi,项目名称:Socorro-Tests,代码行数:13,代码来源:test_crash_reports.py

示例6: test_that_reports_form_has_same_product_for_thunderbird

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_reports_form_has_same_product_for_thunderbird(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Thunderbird')
     page_title = csp.page_title
     Assert.true('Thunderbird' in page_title)
     Assert.true('Mozilla' in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:14,代码来源:test_crash_reports.py

示例7: test_that_reports_form_has_same_product_for_fennec

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import can_find_text [as 别名]
 def test_that_reports_form_has_same_product_for_fennec(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Fennec')
     page_title = csp.page_title
     Assert.true('Fennec' in page_title)
     #Bug 576721 - Needs reenabled when fixed
     #Assert.true('Mozilla' not in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:15,代码来源:test_crash_reports.py


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