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


Python PageProvider.click_article_preview_button方法代码示例

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


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

示例1: test_that_article_can_be_previewed_before_submitting

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
    def test_that_article_can_be_previewed_before_submitting(self, mozwebqa):

        kb_new_article = PageProvider(mozwebqa).new_kb_article_page()
        article_info_dict = self._create_new_generic_article(kb_new_article)

        kb_new_article.click_article_preview_button()
        actual_preview_text = kb_new_article.article_preview_text

        Assert.equal(article_info_dict['content'], actual_preview_text)
开发者ID:teodosia,项目名称:sumo-tests,代码行数:11,代码来源:test_kb_article.py

示例2: test_that_article_can_be_previewed_before_submitting

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
    def test_that_article_can_be_previewed_before_submitting(self, mozwebqa):
        """
            Start a new knowledge base article.
            Preview.
            Verify the contents in the preview
        """
        kb_new_article = PageProvider(mozwebqa).new_kb_article_page()

        # create a new article
        mock_article = MockArticle()
        kb_new_article.set_article(mock_article)

        kb_new_article.click_article_preview_button()
        actual_preview_text = kb_new_article.article_preview_text

        Assert.equal(mock_article["content"], actual_preview_text)
开发者ID:viorelaioia,项目名称:sumo-tests,代码行数:18,代码来源:test_kb_article.py

示例3: test_that_article_can_be_previewed_before_submitting

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import click_article_preview_button [as 别名]
    def test_that_article_can_be_previewed_before_submitting(self, mozwebqa, variables):
        """
            Start a new knowledge base article.
            Preview.
            Verify the contents in the preview
        """
        user = variables['users']['default']
        kb_new_article = PageProvider(mozwebqa).new_kb_article_page(
            user['username'], user['password'])

        # create a new article
        mock_article = MockArticle()
        kb_new_article.set_article(mock_article)

        kb_new_article.click_article_preview_button()
        actual_preview_text = kb_new_article.article_preview_text

        Assert.equal(mock_article['content'], actual_preview_text)
开发者ID:bobsilverberg,项目名称:sumo-tests,代码行数:20,代码来源:test_kb_article.py


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