本文整理匯總了Python中crash_stats_page.CrashStatsHomePage.select_version方法的典型用法代碼示例。如果您正苦於以下問題:Python CrashStatsHomePage.select_version方法的具體用法?Python CrashStatsHomePage.select_version怎麽用?Python CrashStatsHomePage.select_version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crash_stats_page.CrashStatsHomePage
的用法示例。
在下文中一共展示了CrashStatsHomePage.select_version方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_that_selecting_exact_version_doesnt_show_other_versions
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_version [as 別名]
def test_that_selecting_exact_version_doesnt_show_other_versions(self, seleniumsetup):
self.selenium = seleniumsetup.selenium
csp = CrashStatsHomePage(self.selenium)
details = csp.current_details
if len(details['versions']) > 0:
csp.select_version(details['versions'][1])
Assert.equal(details['product'] + ' ' + details['versions'][1],csp.right_column_heading)
try:
centre_name = csp.centre_column_heading
Assert.fail(centre_name + ' was shown when it shouldnt be there')
except Exception, e:
pass
示例2: test_that_selecting_exact_version_doesnt_show_other_versions
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_version [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])