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


Python AddonsHomePage.click_themes方法代码示例

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


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

示例1: test_that_clicking_on_theme_name_loads_its_detail_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_clicking_on_theme_name_loads_its_detail_page(self, testsetup):
     """test for litmus 15363"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     addon_name = amo_themes_page.addon_names[0]
     amo_theme_page = amo_themes_page.click_on_first_addon()
     Assert.equal(addon_name, amo_theme_page.addon_title)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:9,代码来源:test_themes.py

示例2: test_that_clicking_on_a_subcategory_loads_expected_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_clicking_on_a_subcategory_loads_expected_page(self, testsetup):
     """test for litmus 15949"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     selected_category = amo_themes_page.themes_category
     amo_category_page = amo_themes_page.click_on_first_category()
     Assert.equal(selected_category, amo_category_page.title)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:9,代码来源:test_themes.py

示例3: test_themes_subcategory_page_breadcrumb

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_themes_subcategory_page_breadcrumb(self, testsetup):
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     selected_category = amo_themes_page.themes_category
     amo_category_page = amo_themes_page.click_on_first_category()
     expected_breadcrumb = "Add-ons for Firefox Themes %s" % selected_category
     Assert.equal(expected_breadcrumb, amo_category_page.breadcrumb)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:9,代码来源:test_themes.py

示例4: test_that_clicking_on_theme_name_loads_its_detail_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_clicking_on_theme_name_loads_its_detail_page(self, mozwebqa):
     """test for litmus 15363"""
     amo_home_page = AddonsHomePage(mozwebqa)
     amo_themes_page = amo_home_page.click_themes()
     addon_name = amo_themes_page.addon_names[0]
     amo_theme_page = amo_themes_page.click_on_first_addon()
     Assert.contains(addon_name, amo_theme_page.addon_title)
开发者ID:rakeshmick,项目名称:Addon-Tests,代码行数:9,代码来源:test_themes.py

示例5: test_that_themes_can_be_sorted_by_created_date

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_can_be_sorted_by_created_date(self, testsetup):
     """ test for litmus 11638 """
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     amo_themes_page.click_sort_by("created")
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     Assert.equal(len(addons), len(addons_set), "There are duplicates in the names")
     created_dates = amo_themes_page.addon_created_dates
     Assert.is_sorted_descending(created_dates)
     amo_themes_page.page_forward()
     created_dates.extend(amo_themes_page.addon_created_dates)
     Assert.is_sorted_descending(created_dates)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:15,代码来源:test_themes.py

示例6: test_that_themes_can_be_sorted_by_popularity

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_can_be_sorted_by_popularity(self, testsetup):
     """ test for litmus 11638 """
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     amo_themes_page.click_sort_by("popular")
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     Assert.equal(len(addons), len(addons_set), "There are duplicates in the names")
     downloads = amo_themes_page.addon_download_number
     Assert.is_sorted_descending(downloads)
     amo_themes_page.page_forward()
     downloads.extend(amo_themes_page.addon_download_number)
     Assert.is_sorted_descending(downloads)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:15,代码来源:test_themes.py

示例7: test_that_themes_categories_are_listed_on_left_hand_side

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [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

示例8: test_that_themes_can_be_sorted_by_name

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_can_be_sorted_by_name(self, testsetup):
     """ Test for Litmus 11727, 4839 """
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     amo_themes_page.click_sort_by("name")
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     Assert.equal(len(addons), len(addons_set), "There are duplicates in the names")
     addons_orig = addons
     addons.sort()
     [Assert.equal(addons_orig[i], addons[i]) for i in xrange(len(addons))]
     amo_themes_page.page_forward()
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     Assert.equal(len(addons), len(addons_set), "There are duplicates in the names")
     addons_orig = addons
     addons.sort()
     [Assert.equal(addons_orig[i], addons[i]) for i in xrange(len(addons))]
开发者ID:joshfeldy,项目名称:Addon-Tests,代码行数:20,代码来源:test_themes.py

示例9: test_that_themes_can_be_sorted_by_created_date

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_can_be_sorted_by_created_date(self, testsetup):
     """ test for litmus 11638"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     amo_themes_page.click_sort_by("created")
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     Assert.equal(len(addons), len(addons_set), "There are duplicates in the names")
     addon_dates = amo_themes_page.addon_update_dates
     addons_orig = addon_dates
     addon_dates.sort()
     addon_dates.reverse()
     [Assert.equal(addons_orig[i], addon_dates[i]) for i in xrange(len(addons))]
     amo_themes_page.page_forward()
     addon_dates = amo_themes_page.addon_update_dates
     addons_orig = addon_dates
     addon_dates.sort()
     addon_dates.reverse()
     [Assert.equal(addons_orig[i], addon_dates[i]) for i in xrange(len(addons))]
开发者ID:joshfeldy,项目名称:Addon-Tests,代码行数:21,代码来源:test_themes.py

示例10: test_that_themes_can_be_sorted_by_updated_date

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_can_be_sorted_by_updated_date(self):
     """ test for litmus 11750"""
     amo_home_page = AddonsHomePage(self.selenium)
     amo_themes_page = amo_home_page.click_themes()
     amo_themes_page.click_sort_by("updated")
     addons = amo_themes_page.addon_names
     addons_set = set(addons)
     self.assertEquals(len(addons), len(addons_set), "There are duplicates in the names")
     addon_dates = amo_themes_page.addon_update_dates
     addons_orig = addon_dates
     addon_dates.sort()
     addon_dates.reverse()
     [self.assertEqual(addons_orig[i], addon_dates[i]) for i in xrange(len(addons))]
     amo_themes_page.page_forward()
     addon_dates = amo_themes_page.addon_update_dates
     addons_orig = addon_dates
     addon_dates.sort()
     addon_dates.reverse()
     [self.assertEqual(addons_orig[i], addon_dates[i]) for i in xrange(len(addons))]
开发者ID:josmas,项目名称:Addon-Tests,代码行数:21,代码来源:test_themes.py

示例11: test_themes_page_breadcrumb

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_themes_page_breadcrumb(self, testsetup):
     """test for litmus 15344"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     expected_breadcrumb = "Add-ons for Firefox Themes"
     Assert.equal(expected_breadcrumb, amo_themes_page.themes_breadcrumb)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:8,代码来源:test_themes.py

示例12: test_that_themes_page_has_correct_title

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_page_has_correct_title(self, testsetup):
     """test for litmus 15340"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     expected_title = "Most Popular :: Themes :: Add-ons for Firefox"
     Assert.equal(expected_title, amo_themes_page.page_title)
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:8,代码来源:test_themes.py

示例13: test_that_themes_loads_themes_landing_page

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_themes_loads_themes_landing_page(self, testsetup):
     """test for litmus 15339"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     url_current_page = amo_themes_page.get_url_current_page()
     Assert.true(url_current_page.endswith("/themes/"))
开发者ID:vish-moz,项目名称:Addon-Tests,代码行数:8,代码来源:test_themes.py

示例14: test_that_counters_show_the_same_number_of_themes

# 需要导入模块: from addons_site import AddonsHomePage [as 别名]
# 或者: from addons_site.AddonsHomePage import click_themes [as 别名]
 def test_that_counters_show_the_same_number_of_themes(self, testsetup):
     """test for litmus 15345"""
     amo_home_page = AddonsHomePage(testsetup)
     amo_themes_page = amo_home_page.click_themes()
     Assert.equal(amo_themes_page.top_counter, amo_themes_page.bottom_counter)
开发者ID:vladmaniac,项目名称:Addon-Tests,代码行数:7,代码来源:test_themes.py


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