当前位置: 首页>>代码示例>>Python>>正文


Python AddonsHomePage.click_personas方法代码示例

本文整理汇总了Python中addons_site.AddonsHomePage.click_personas方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsHomePage.click_personas方法的具体用法?Python AddonsHomePage.click_personas怎么用?Python AddonsHomePage.click_personas使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在addons_site.AddonsHomePage的用法示例。


在下文中一共展示了AddonsHomePage.click_personas方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_the_featured_personas_section

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_the_featured_personas_section(self, testsetup):
     """ Test for Litmus 15392
         https://litmus.mozilla.org/show_test.cgi?id=15392"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
     Assert.equal(6, amo_personas_page.featured_personas_count)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:9,代码来源:test_personas.py

示例2: test_breadcrumb_menu_in_persona_details_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
    def test_breadcrumb_menu_in_persona_details_page(self, testsetup):
        """ Test for Litmus 12046
            https://litmus.mozilla.org/show_test.cgi?id=12046"""

        # Step 1, 2: Access AMO Homepage, Click on Persona category link.
        amo_home_page = AddonsHomePage(testsetup)
        amo_personas_page = amo_home_page.click_personas()
        Assert.true(amo_personas_page.is_the_current_page)

        # Step 3: Click on any persona.
        random_persona_index = random.randint(1, amo_personas_page.persona_count)
        print "random_persona_index: %s" % str(random_persona_index)
        amo_personas_detail_page = amo_personas_page.click_persona(random_persona_index)
        print "url_current_page:     %s" % str(amo_personas_detail_page.get_url_current_page())
        Assert.true(amo_personas_detail_page.is_the_current_page)

        # Verify breadcrumb menu format, i.e. Add-ons for Firefox > Personas > {Persona Name}.
        persona_title = amo_personas_detail_page.personas_title
        Assert.equal("Add-ons for Firefox", amo_personas_detail_page.get_breadcrumb_item_text(1))
        Assert.equal("Personas", amo_personas_detail_page.get_breadcrumb_item_text(2))
        Assert.equal(persona_title, amo_personas_detail_page.get_breadcrumb_item_text(3))

        # Step 4: Click on the links present in the Breadcrumb menu.
        # Verify that the Personas link loads the Personas home page.
        amo_personas_detail_page.click_breadcrumb_item("Personas")
        Assert.true(amo_personas_page.is_the_current_page)

        amo_personas_page.return_to_previous_page()
        Assert.true(amo_personas_detail_page.is_the_current_page)

        # Verify that the Add-ons for Firefox link loads the AMO home page.
        amo_personas_detail_page.click_breadcrumb_item("Add-ons for Firefox")
        Assert.true(amo_home_page.is_the_current_page)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:35,代码来源:test_personas.py

示例3: test_the_most_popular_section

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_the_most_popular_section(self, testsetup):
     """ Test for Litmus 15394
         https://litmus.mozilla.org/show_test.cgi?id=15394"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
     Assert.equal(6, amo_personas_page.most_popular_count)
     downloads = amo_personas_page.most_popular_downloads
     Assert.is_sorted_descending(downloads)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:11,代码来源:test_personas.py

示例4: test_the_recently_added_section

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_the_recently_added_section(self, testsetup):
     """ Test for Litmus 15393
         https://litmus.mozilla.org/show_test.cgi?id=15393"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
     Assert.equal(6, amo_personas_page.recently_added_count)
     recently_added_dates = amo_personas_page.recently_added_dates
     Assert.is_sorted_descending(recently_added_dates)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:11,代码来源:test_personas.py

示例5: test_the_top_rated_section

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_the_top_rated_section(self, mozwebqa):
     """ Test for Litmus 15395
         https://litmus.mozilla.org/show_test.cgi?id=15395"""
     amo_home_page = AddonsHomePage(mozwebqa)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
     Assert.equal(6, amo_personas_page.top_rated_count)
     ratings = amo_personas_page.top_rated_ratings
     Assert.is_sorted_descending(ratings)
开发者ID:rakeshmick,项目名称:Addon-Tests,代码行数:11,代码来源:test_personas.py

示例6: test_start_exploring_link_in_the_promo_box

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_start_exploring_link_in_the_promo_box(self, testsetup):
     """ Test for Litmus 12037
         https://litmus.mozilla.org/show_test.cgi?id=12037"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
     Assert.true(amo_personas_page.is_featured_addons_present)
     browse_personas_page = amo_personas_page.click_start_exploring()
     Assert.true(browse_personas_page.is_the_current_page)
     Assert.equal("up-and-coming", browse_personas_page.sort_key)
     Assert.equal("Up & Coming", browse_personas_page.sort_by)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:13,代码来源:test_personas.py

示例7: test_page_title_for_personas_landing_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_personas [as 别名]
 def test_page_title_for_personas_landing_page(self, testsetup):
     """ Test for Litmus 15391
         https://litmus.mozilla.org/show_test.cgi?id=15391"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_personas_page = amo_home_page.click_personas()
     Assert.true(amo_personas_page.is_the_current_page)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:8,代码来源:test_personas.py


注:本文中的addons_site.AddonsHomePage.click_personas方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。