本文整理汇总了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])