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


Python DiscoveryPane.click_logout方法代码示例

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


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

示例1: test_the_logout_link_for_logged_in_users

# 需要导入模块: from pages.desktop.discovery import DiscoveryPane [as 别名]
# 或者: from pages.desktop.discovery.DiscoveryPane import click_logout [as 别名]
 def test_the_logout_link_for_logged_in_users(self, services_base_url, selenium, user):
     selenium.get(services_base_url)
     selenium.add_cookie({
         'name': user['session_cookie']['name'],
         'value': user['session_cookie']['value']})
     discovery_pane = DiscoveryPane(services_base_url, selenium, self.basepath(selenium))
     home_page = discovery_pane.click_logout()
     assert home_page.is_the_current_page
     assert not home_page.header.is_user_logged_in
开发者ID:AnetaStoycheva,项目名称:Addon-Tests,代码行数:11,代码来源:test_discovery_page.py

示例2: test_the_logout_link_for_logged_in_users

# 需要导入模块: from pages.desktop.discovery import DiscoveryPane [as 别名]
# 或者: from pages.desktop.discovery.DiscoveryPane import click_logout [as 别名]
    def test_the_logout_link_for_logged_in_users(self, base_url, services_base_url, selenium, existing_user):
        home_page = Home(base_url, selenium)
        home_page.login(existing_user['email'], existing_user['password'])
        assert home_page.is_the_current_page
        assert home_page.header.is_user_logged_in

        discovery_pane = DiscoveryPane(services_base_url, selenium, self.basepath(selenium))
        home_page = discovery_pane.click_logout()
        assert home_page.is_the_current_page
        assert not home_page.header.is_user_logged_in
开发者ID:bobsilverberg,项目名称:Addon-Tests,代码行数:12,代码来源:test_discovery_page.py

示例3: test_the_logout_link_for_logged_in_users

# 需要导入模块: from pages.desktop.discovery import DiscoveryPane [as 别名]
# 或者: from pages.desktop.discovery.DiscoveryPane import click_logout [as 别名]
    def test_the_logout_link_for_logged_in_users(self, mozwebqa, existing_user):
        home_page = Home(mozwebqa)
        home_page.login(existing_user['email'], existing_user['password'])
        assert home_page.is_the_current_page
        assert home_page.header.is_user_logged_in

        discovery_pane = DiscoveryPane(mozwebqa, self.basepath(mozwebqa))
        home_page = discovery_pane.click_logout()
        assert home_page.is_the_current_page
        assert not home_page.header.is_user_logged_in
开发者ID:adini121,项目名称:Addon-Tests,代码行数:12,代码来源:test_discovery_page.py

示例4: test_the_logout_link_for_logged_in_users

# 需要导入模块: from pages.desktop.discovery import DiscoveryPane [as 别名]
# 或者: from pages.desktop.discovery.DiscoveryPane import click_logout [as 别名]
    def test_the_logout_link_for_logged_in_users(self, mozwebqa):
        home_page = Home(mozwebqa)
        home_page.login()
        Assert.true(home_page.is_the_current_page)
        Assert.true(home_page.header.is_user_logged_in)

        discovery_pane = DiscoveryPane(mozwebqa, self.basepath(mozwebqa))
        home_page = discovery_pane.click_logout()
        Assert.true(home_page.is_the_current_page)
        Assert.false(home_page.header.is_user_logged_in)
开发者ID:GorillaTester,项目名称:Addon-Tests,代码行数:12,代码来源:test_discovery_page.py

示例5: test_the_logout_link_for_logged_in_users

# 需要导入模块: from pages.desktop.discovery import DiscoveryPane [as 别名]
# 或者: from pages.desktop.discovery.DiscoveryPane import click_logout [as 别名]
    def test_the_logout_link_for_logged_in_users(self, mozwebqa):
        """
        Test for Litmus 15110.
        https://litmus.mozilla.org/show_test.cgi?id=15110
        """
        home_page = Home(mozwebqa)
        home_page.login()
        Assert.true(home_page.is_the_current_page)
        Assert.true(home_page.header.is_user_logged_in)

        discovery_pane = DiscoveryPane(mozwebqa, self.basepath(mozwebqa))
        home_page = discovery_pane.click_logout()
        Assert.true(home_page.is_the_current_page)
        Assert.false(home_page.header.is_user_logged_in)
开发者ID:AlinT,项目名称:Addon-Tests,代码行数:16,代码来源:test_discovery_page.py


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