當前位置: 首頁>>代碼示例>>Python>>正文


Python IndexPage.click_sign_in方法代碼示例

本文整理匯總了Python中common.test.acceptance.pages.studio.index.IndexPage.click_sign_in方法的典型用法代碼示例。如果您正苦於以下問題:Python IndexPage.click_sign_in方法的具體用法?Python IndexPage.click_sign_in怎麽用?Python IndexPage.click_sign_in使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在common.test.acceptance.pages.studio.index.IndexPage的用法示例。


在下文中一共展示了IndexPage.click_sign_in方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: SignInHelpTest

# 需要導入模塊: from common.test.acceptance.pages.studio.index import IndexPage [as 別名]
# 或者: from common.test.acceptance.pages.studio.index.IndexPage import click_sign_in [as 別名]
class SignInHelpTest(AcceptanceTest):
    """
    Tests help links on 'Sign In' page
    """
    def setUp(self):
        super(SignInHelpTest, self).setUp()
        self.index_page = IndexPage(self.browser)
        self.index_page.visit()

    def test_sign_in_nav_help(self):
        """
        Scenario: Help link in navigation bar is working on 'Sign In' page.
        Given that I am on the 'Sign In" page.
        And I want help about the sign in
        And I click the 'Help' in the navigation bar
        Then Help link should open.
        And help url should end with 'getting_started/get_started.html'
        """
        sign_in_page = self.index_page.click_sign_in()
        # The href we want to see in anchor help element.
        href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
               'en/open-release-ficus.master/getting_started/get_started.html'

        # Assert that help link is correct.
        assert_nav_help_link(
            test=self,
            page=sign_in_page,
            href=href,
            signed_in=False
        )
開發者ID:caesar2164,項目名稱:edx-platform,代碼行數:32,代碼來源:test_studio_help.py


注:本文中的common.test.acceptance.pages.studio.index.IndexPage.click_sign_in方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。