本文整理匯總了Python中crash_stats_page.CrashStatsHomePage.click_first_product_top_crashers_link方法的典型用法代碼示例。如果您正苦於以下問題:Python CrashStatsHomePage.click_first_product_top_crashers_link方法的具體用法?Python CrashStatsHomePage.click_first_product_top_crashers_link怎麽用?Python CrashStatsHomePage.click_first_product_top_crashers_link使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crash_stats_page.CrashStatsHomePage
的用法示例。
在下文中一共展示了CrashStatsHomePage.click_first_product_top_crashers_link方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_that_search_for_valid_signature
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import click_first_product_top_crashers_link [as 別名]
def test_that_search_for_valid_signature(self, testsetup):
'''
This is a test for
https://bugzilla.mozilla.org/show_bug.cgi?id=609070
'''
self.selenium = testsetup.selenium
csp = CrashStatsHomePage(testsetup)
reportlist = csp.click_first_product_top_crashers_link()
signature = reportlist.first_valid_signature
result = csp.search_for_crash(signature)
Assert.false(result.can_find_text('No results were found.'))
示例2: test_that_selecting_exact_version_doesnt_show_other_versions
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import click_first_product_top_crashers_link [as 別名]
def test_that_selecting_exact_version_doesnt_show_other_versions(self, testsetup):
self.selenium = testsetup.selenium
csp = CrashStatsHomePage(testsetup)
details = csp.current_details
if len(details['versions']) > 0:
csp.select_version(details['versions'][1])
report_list = csp.click_first_product_top_crashers_link()
report = report_list.click_first_valid_signature()
count = 0
while count < report.row_count:
count += 1
report = report_list.get_report(count)
product = report.product
version = report.version
Assert.equal(product, details['product'])
Assert.contains(version, details['versions'][1])