本文整理汇总了Python中pages.desktop.page_provider.PageProvider.register_new_user方法的典型用法代码示例。如果您正苦于以下问题:Python PageProvider.register_new_user方法的具体用法?Python PageProvider.register_new_user怎么用?Python PageProvider.register_new_user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.desktop.page_provider.PageProvider
的用法示例。
在下文中一共展示了PageProvider.register_new_user方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_thank_you_page_is_displayed_after_successful_registration
# 需要导入模块: from pages.desktop.page_provider import PageProvider [as 别名]
# 或者: from pages.desktop.page_provider.PageProvider import register_new_user [as 别名]
def test_that_thank_you_page_is_displayed_after_successful_registration(self, mozwebqa):
"""
Register a new user using random username.
Verify registration by checking the page title
"""
register_pg = PageProvider(mozwebqa).new_user_registration_page()
register_pg.register_new_user()
actual_page_title = register_pg.page_title
expected_page_title = register_pg._page_title_after_registration
Assert.contains(expected_page_title, actual_page_title)