本文整理匯總了Python中crash_stats_page.CrashStatsHomePage.search_for_crash方法的典型用法代碼示例。如果您正苦於以下問題:Python CrashStatsHomePage.search_for_crash方法的具體用法?Python CrashStatsHomePage.search_for_crash怎麽用?Python CrashStatsHomePage.search_for_crash使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crash_stats_page.CrashStatsHomePage
的用法示例。
在下文中一共展示了CrashStatsHomePage.search_for_crash方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_that_search_for_valid_signature
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [as 別名]
def test_that_search_for_valid_signature(self, seleniumsetup):
'''
This is a test for
https://bugzilla.mozilla.org/show_bug.cgi?id=609070
'''
self.selenium = seleniumsetup.selenium
csp = CrashStatsHomePage(self.selenium)
result = csp.search_for_crash(csp.second_signature)
Assert.false(result.can_find_text('No results were found.'))
示例2: test_that_search_for_valid_signature
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [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.'))
示例3: test_that_when_item_not_available
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [as 別名]
def test_that_when_item_not_available(self, seleniumsetup):
self.selenium = seleniumsetup.selenium
csp = CrashStatsHomePage(self.selenium)
results = csp.search_for_crash("this won't exist")
Assert.true(results.can_find_text('No results were found.'))