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


Python AddonsHomePage.get_url_current_page方法代码示例

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


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

示例1: test_that_clicking_mozilla_logo_loads_mozilla_dot_org

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import get_url_current_page [as 别名]
 def test_that_clicking_mozilla_logo_loads_mozilla_dot_org(self, mozwebqa):
     """
     Litmus 22922
     https://litmus.mozilla.org/show_test.cgi?id=22922
     """
     amo_home_page = AddonsHomePage(mozwebqa)
     Assert.true(amo_home_page.is_mozilla_logo_visible)
     amo_home_page.click_mozilla_logo()
     Assert.equal(amo_home_page.get_url_current_page(), "http://www.mozilla.org/")
开发者ID:rakeshmick,项目名称:Addon-Tests,代码行数:11,代码来源:test_amo_homepage.py

示例2: test_other_applications_thunderbird

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

        amo_home_page = AddonsHomePage(testsetup)

        amo_home_page.header.click_other_applications()
        amo_home_page.header.click_thunderbird()
        Assert.true("thunderbird" in amo_home_page.get_url_current_page())

        amo_home_page.header.click_other_applications()
        Assert.false(amo_home_page.header.is_thunderbird_visible())
开发者ID:Dualtha,项目名称:Addon-Tests,代码行数:15,代码来源:test_amo_layout.py

示例3: test_that_themes_categories_are_listed_on_left_hand_side

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import get_url_current_page [as 别名]
 def test_that_themes_categories_are_listed_on_left_hand_side(self, mozwebqa):
     """ test for litmus 15342"""
     amo_home_page = AddonsHomePage(mozwebqa)
     amo_themes_page = amo_home_page.click_themes()
     current_page_url = amo_home_page.get_url_current_page()
     Assert.true(current_page_url.endswith("/themes/"))
     default_categories = ["Animals", "Compact", "Large", "Miscellaneous", "Modern", "Nature", "OS Integration", "Retro", "Sports"]
     Assert.equal(amo_themes_page.categories_count, len(default_categories))
     count = 0
     for category in default_categories:
         count += 1
         current_category = amo_themes_page.get_category(count)
         Assert.equal(category, current_category)
开发者ID:rakeshmick,项目名称:Addon-Tests,代码行数:15,代码来源:test_themes.py

示例4: test_sorting_by_users_number

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import get_url_current_page [as 别名]
 def test_sorting_by_users_number(self, testsetup):
     """Litmus 24867"""
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('users')
     Assert.true('sort=users' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.users for i in amo_search_page.results()])
开发者ID:bloodaxealin,项目名称:Addon-Tests,代码行数:7,代码来源:test_search.py

示例5: test_sorting_by_updated_date

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import get_url_current_page [as 别名]
 def test_sorting_by_updated_date(self, testsetup):
     """ Litmus 17345
         https://litmus.mozilla.org/show_test.cgi?id=17345 """
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('updated')
     Assert.true('sort=updated' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.updated_date for i in amo_search_page.results()])
开发者ID:bloodaxealin,项目名称:Addon-Tests,代码行数:8,代码来源:test_search.py

示例6: test_sorting_by_downloads

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import get_url_current_page [as 别名]
 def test_sorting_by_downloads(self, testsetup):
     """ Litmus 17342
         https://litmus.mozilla.org/show_test.cgi?id=17342 """
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('downloads')
     Assert.true('sort=weeklydownloads' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.downloads for i in amo_search_page.results()])
开发者ID:bloodaxealin,项目名称:Addon-Tests,代码行数:8,代码来源:test_search.py


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