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


Python PageProvider.sign_out方法代码示例

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


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

示例1: test_logout

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import sign_out [as 别名]
    def test_logout(self, mozwebqa):
        home_page = PageProvider(mozwebqa).home_page(do_login=True, user='default')
        Assert.true(home_page.header.is_user_logged_in, 'User not shown to be logged in')

        # sign out
        home_page.sign_out()
        Assert.false(home_page.header.is_user_logged_in)
开发者ID:klrmn,项目名称:sumo-tests,代码行数:9,代码来源:test_login_logout.py

示例2: test_no_query_adv_forum_search

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

        # do test
        refine_search_pg.click_support_questions_tab()
        refine_search_pg.type_in_asked_by_box(refine_search_pg.get_user_name('default'))
        refine_search_pg.click_search_button_support()

        Assert.true(refine_search_pg.search_result_count > 0, "No search results not found")

        # sign out
        refine_search_pg.sign_out()
开发者ID:bebef1987,项目名称:sumo-tests,代码行数:14,代码来源:test_search.py

示例3: test_logout_from_new_kb_article_page

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import sign_out [as 别名]
    def test_logout_from_new_kb_article_page(self, mozwebqa):
        new_kb_page = PageProvider(mozwebqa).new_kb_article_page()
        Assert.true(new_kb_page.header.is_user_logged_in, 'User not shown to be logged in')

        # sign out
        register_page = new_kb_page.sign_out()
        register_page.is_the_current_page
        Assert.true(register_page.header.is_user_logged_out)
开发者ID:smillaedler,项目名称:sumo-tests,代码行数:10,代码来源:test_login_logout.py

示例4: test_logout_from_new_kb_article_page

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import sign_out [as 别名]
    def test_logout_from_new_kb_article_page(self, mozwebqa, variables):
        user = variables['users']['default']
        new_kb_page = PageProvider(mozwebqa).new_kb_article_page(
            user['username'], user['password'])
        Assert.true(new_kb_page.header.is_user_logged_in, 'User not shown to be logged in')

        # sign out
        register_page = new_kb_page.sign_out()
        register_page.is_the_current_page
        Assert.true(register_page.header.is_user_logged_out)
开发者ID:bobsilverberg,项目名称:sumo-tests,代码行数:12,代码来源:test_login_logout.py

示例5: test_that_posting_question_works

# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import sign_out [as 别名]
    def test_that_posting_question_works(self, mozwebqa):
        """Posts a question to /questions"""
        timestamp = datetime.datetime.today()
        q_to_ask = "automation test question %s" % (timestamp)
        q_details = "This is a test. %s" % (timestamp)

        # go to the /questions/new page and log in
        ask_new_questions_pg = PageProvider(mozwebqa).new_question_page()

        # post a question
        ask_new_questions_pg.click_firefox_product_link()
        ask_new_questions_pg.click_category_problem_link()
        ask_new_questions_pg.type_question(q_to_ask)
        ask_new_questions_pg.click_provide_details_button()
        view_question_pg = ask_new_questions_pg.fill_up_questions_form(q_to_ask, q_details)

        Assert.equal(view_question_pg.question, q_to_ask)
        Assert.equal(view_question_pg.question_detail, q_details)

        # sign out
        ask_new_questions_pg.sign_out()
开发者ID:rlr,项目名称:sumo-tests,代码行数:23,代码来源:test_questions.py


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