本文整理汇总了Python中pages.mobile.home.Home.login_with_user方法的典型用法代码示例。如果您正苦于以下问题:Python Home.login_with_user方法的具体用法?Python Home.login_with_user怎么用?Python Home.login_with_user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.mobile.home.Home
的用法示例。
在下文中一共展示了Home.login_with_user方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_user_can_login_and_logout
# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import login_with_user [as 别名]
def test_user_can_login_and_logout(self, mozwebqa):
home_page = Home(mozwebqa)
home_page.go_to_homepage()
home_page.login_with_user(user="default")
Assert.false(home_page.footer.is_login_visible)
Assert.true(home_page.is_featured_section_visible)
settings_page = home_page.header.click_settings()
Assert.equal(settings_page.email_text, mozwebqa.credentials["default"]["email"])
home_page = settings_page.click_logout()
home_page.wait_for_ajax_on_page_finish()
Assert.true(home_page.footer.is_login_visible)
示例2: test_user_can_click_back_from_settings_page
# 需要导入模块: from pages.mobile.home import Home [as 别名]
# 或者: from pages.mobile.home.Home import login_with_user [as 别名]
def test_user_can_click_back_from_settings_page(self, mozwebqa):
"""
https://bugzilla.mozilla.org/show_bug.cgi?id=795185#c11
"""
home_page = Home(mozwebqa)
home_page.go_to_homepage()
home_page.login_with_user(user="default")
Assert.false(home_page.footer.is_login_visible)
settings_page = home_page.header.click_settings()
Assert.equal(settings_page.email_text, mozwebqa.credentials["default"]["email"])
settings_page.click_apps()
Assert.equal("Apps", settings_page.selected_settings_option)
settings_page.header.click_back()
Assert.true(home_page.is_featured_section_visible)