本文整理汇总了Python中pages.home.Home.select_org方法的典型用法代码示例。如果您正苦于以下问题:Python Home.select_org方法的具体用法?Python Home.select_org怎么用?Python Home.select_org使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.home.Home
的用法示例。
在下文中一共展示了Home.select_org方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_admin_login_logout
# 需要导入模块: from pages.home import Home [as 别名]
# 或者: from pages.home.Home import select_org [as 别名]
def test_admin_login_logout(self, mozwebqa):
home_page = Home(mozwebqa)
home_page.login()
home_page.select_org(home_page.org).click()
home_page.header.click_logout()
Assert.true(home_page.is_username_field_present)
Assert.true(home_page.is_password_field_present)
示例2: test_dashboard_present
# 需要导入模块: from pages.home import Home [as 别名]
# 或者: from pages.home.Home import select_org [as 别名]
def test_dashboard_present(self, mozwebqa):
"""
Verify dashboard page contains key elements.
"""
home_page = Home(mozwebqa)
home_page.login()
home_page.select_org(home_page.org).click()
dashboard = Dashboard(mozwebqa)
Assert.true(dashboard.is_dashboard_dropbutton_present)
Assert.true(dashboard.is_dashboard_subscriptions_present)
Assert.true(dashboard.is_dashboard_notificaitons_present)