本文整理汇总了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
示例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
示例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
示例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)
示例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)