本文整理汇总了Python中robottelo.ui.navigator.Navigator.go_to_select_org方法的典型用法代码示例。如果您正苦于以下问题:Python Navigator.go_to_select_org方法的具体用法?Python Navigator.go_to_select_org怎么用?Python Navigator.go_to_select_org使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类robottelo.ui.navigator.Navigator
的用法示例。
在下文中一共展示了Navigator.go_to_select_org方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: login
# 需要导入模块: from robottelo.ui.navigator import Navigator [as 别名]
# 或者: from robottelo.ui.navigator.Navigator import go_to_select_org [as 别名]
def login(self, username, password, organization=None, location=None):
"""Logins user from UI"""
if self.wait_until_element(locators['login.username']):
self.assign_value(locators['login.username'], username)
self.assign_value(locators['login.password'], password)
self.click(common_locators['submit'])
if self.find_element(common_locators['notif.error']):
return
if location:
nav = Navigator(self.browser)
nav.go_to_select_loc(location)
if organization:
nav = Navigator(self.browser)
nav.go_to_select_org(organization)
示例2: login
# 需要导入模块: from robottelo.ui.navigator import Navigator [as 别名]
# 或者: from robottelo.ui.navigator.Navigator import go_to_select_org [as 别名]
def login(self, username, password, organization=None, location=None):
"""Logins user from UI"""
if self.wait_until_element(locators["login.username"]):
self.field_update("login.username", username)
self.field_update("login.password", password)
self.find_element(common_locators["submit"]).click()
if self.find_element(common_locators["notif.error"]):
return
if location:
nav = Navigator(self.browser)
nav.go_to_select_loc(location)
if organization:
nav = Navigator(self.browser)
nav.go_to_select_org(organization)