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