本文整理汇总了Python中addons_site.AddonsDetailsPage.select_other_addons_dropdown_value方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsDetailsPage.select_other_addons_dropdown_value方法的具体用法?Python AddonsDetailsPage.select_other_addons_dropdown_value怎么用?Python AddonsDetailsPage.select_other_addons_dropdown_value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类addons_site.AddonsDetailsPage
的用法示例。
在下文中一共展示了AddonsDetailsPage.select_other_addons_dropdown_value方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_navigating_to_other_addons_by_the_same_author_when_there_are_more_than_four_other_addons
# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import select_other_addons_dropdown_value [as 别名]
def test_navigating_to_other_addons_by_the_same_author_when_there_are_more_than_four_other_addons(self, testsetup):
"""
Litmus 11926
https://litmus.mozilla.org/show_test.cgi?id=1192"""
addon_with_more_than_four_addons_by_the_same_author = 'firebug'
amo_detail_page = AddonsDetailsPage(testsetup, addon_with_more_than_four_addons_by_the_same_author)
addons = amo_detail_page.other_addons_dropdown_values
Assert.true(len(addons) > 4)
for i in range(len(addons) - 1, 0, -1): # Not checking the first item in the drop-down https://bugzilla.mozilla.org/show_bug.cgi?id=660706
amo_detail_page.select_other_addons_dropdown_value(addons[i])
print addons[i]
Assert.true(amo_detail_page.name.startswith(addons[i].rstrip('.')))
AddonsDetailsPage(testsetup, addon_with_more_than_four_addons_by_the_same_author)