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


Python Home.click_all_featured_addons_link方法代码示例

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


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

示例1: test_all_featured_extensions_link

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_all_featured_extensions_link(self, mozwebqa):
        home = Home(mozwebqa)
        assert home.is_the_current_page
        assert 'Featured' == home.default_selected_tab_text

        featured_extensions = home.click_all_featured_addons_link()
        assert 'ADD-ONS' == featured_extensions.title
        assert 'Featured Extensions' == featured_extensions.page_header
        assert 'sort=featured' in featured_extensions.get_url_current_page()
开发者ID:adini121,项目名称:Addon-Tests,代码行数:11,代码来源:test_home.py

示例2: test_all_featured_extensions_link

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_all_featured_extensions_link(self, mozwebqa):

        home = Home(mozwebqa)
        Assert.true(home.is_the_current_page)
        Assert.equal(home.default_selected_tab_text, "Featured")

        featured_extensions = home.click_all_featured_addons_link()

        Assert.equal(featured_extensions.title, "ADD-ONS")
        Assert.equal(featured_extensions.page_header, "Featured Extensions")
        Assert.contains("sort=featured", featured_extensions.get_url_current_page())
开发者ID:shipskadam,项目名称:Addon-Tests,代码行数:13,代码来源:test_home.py

示例3: test_all_featured_extensions_link

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_all_featured_extensions_link(self, mozwebqa):

        home = Home(mozwebqa)
        Assert.true(home.is_the_current_page)
        Assert.equal(home.default_selected_tab_text, 'Featured')

        home.scroll_down  # workaround for selenium scroll issue

        featured_extensions = home.click_all_featured_addons_link()

        Assert.equal(featured_extensions.title, 'ADD-ONS')
        Assert.equal(featured_extensions.page_header, 'Featured Extensions')
        Assert.contains('sort=featured', featured_extensions.get_url_current_page())
开发者ID:GovardhanN,项目名称:Addon-Tests,代码行数:15,代码来源:test_home.py

示例4: test_sort_by_region

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_sort_by_region(self, mozwebqa):

        home = Home(mozwebqa)
        extensions_page = home.click_all_featured_addons_link()
        sort_menu = extensions_page.click_sort_by()
        Assert.true(sort_menu.is_extensions_dropdown_visible)

        actual_options = sort_menu.options
        expected_options = self.sort_options
        Assert.equal(len(actual_options), len(expected_options))

        for i in range(len(actual_options)):
            Assert.equal(actual_options[i].name, expected_options[i])
            Assert.true(actual_options[i].is_option_visible)
开发者ID:Acidburn0zzz,项目名称:Addon-Tests,代码行数:16,代码来源:test_extensions.py

示例5: test_all_featured_extensions_link

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_all_featured_extensions_link(self, mozwebqa):
        """
        litmus 15136
        https://litmus.mozilla.org/show_test.cgi?id=15136
        """

        home = Home(mozwebqa)
        Assert.true(home.is_the_current_page)
        Assert.equal(home.default_selected_tab_text, 'Featured')
        featured_extensions = home.click_all_featured_addons_link()

        Assert.equal(featured_extensions.title, 'MOBILE ADD-ONS')
        Assert.equal(featured_extensions.page_header, 'Featured Extensions')
        Assert.contains('sort=featured', featured_extensions.get_url_current_page())
开发者ID:ivyshushu,项目名称:Addon-Tests,代码行数:16,代码来源:test_home.py

示例6: test_sort_by_region

# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import click_all_featured_addons_link [as 别名]
    def test_sort_by_region(self, mozwebqa):

        home = Home(mozwebqa)
        extensions_page = home.click_all_featured_addons_link()
        sort_menu = extensions_page.click_sort_by()
        assert sort_menu.is_extensions_dropdown_visible

        actual_options = sort_menu.options
        expected_options = self.sort_options
        assert len(expected_options) == len(actual_options)

        for i in range(len(actual_options)):
            assert expected_options[i] == actual_options[i].name
            assert actual_options[i].is_option_visible
开发者ID:adini121,项目名称:Addon-Tests,代码行数:16,代码来源:test_extensions.py


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