本文整理匯總了Python中unit.ewslib_testcase.LIB.euh_navigate_to_specific_tab方法的典型用法代碼示例。如果您正苦於以下問題:Python LIB.euh_navigate_to_specific_tab方法的具體用法?Python LIB.euh_navigate_to_specific_tab怎麽用?Python LIB.euh_navigate_to_specific_tab使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類unit.ewslib_testcase.LIB
的用法示例。
在下文中一共展示了LIB.euh_navigate_to_specific_tab方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_navigate_to_specific_tab_ignores_tab_if_not_specified
# 需要導入模塊: from unit.ewslib_testcase import LIB [as 別名]
# 或者: from unit.ewslib_testcase.LIB import euh_navigate_to_specific_tab [as 別名]
def test_navigate_to_specific_tab_ignores_tab_if_not_specified(self):
self.assertRaisesRegexp(RuntimeError,
"could not find element with text = , dummy_class = test_tabs, widget = None and index = 0",
LIB._get_euh_tab, " ")
#next line shouldn't throw an error
LIB.euh_navigate_to_specific_tab("workforce administration", "employee data")
示例2: test_navigate_to_specific_tab_clicks_visible_tabs
# 需要導入模塊: from unit.ewslib_testcase import LIB [as 別名]
# 或者: from unit.ewslib_testcase.LIB import euh_navigate_to_specific_tab [as 別名]
def test_navigate_to_specific_tab_clicks_visible_tabs(self):
'''this really needs to be tested in the "acceptance test", i.e. on the live system
just doing basic checking making sure we don't throw errors'''
for tab_name in data.TABS.keys() :
LIB.euh_navigate_to_specific_tab("workforce administration", "employee data", tab_name)