本文整理匯總了Python中unit.ewslib_testcase.LIB._get_euh_top_menu_button方法的典型用法代碼示例。如果您正苦於以下問題:Python LIB._get_euh_top_menu_button方法的具體用法?Python LIB._get_euh_top_menu_button怎麽用?Python LIB._get_euh_top_menu_button使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類unit.ewslib_testcase.LIB
的用法示例。
在下文中一共展示了LIB._get_euh_top_menu_button方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_find_euh_top_menu_buttons
# 需要導入模塊: from unit.ewslib_testcase import LIB [as 別名]
# 或者: from unit.ewslib_testcase.LIB import _get_euh_top_menu_button [as 別名]
def test_find_euh_top_menu_buttons(self):
data = ("employee data", "time management", "Payroll Data", "BENEFITS", "WorKFORce administration", "TaLeNt MaNaGeMeNt",
"Strategy & Communication","Service Center")
for topmenu_name in data:
button = LIB._get_euh_top_menu_button(topmenu_name)
self.assertEquals("button", button.tag_name)
locator = OR["topmenu_%s" % (topmenu_name.lower())][5:]
button_id = locator.split(" > ")[0]
#print "name = %s button_id = %s button class = %s" % (topmenu_name, button_id, button.get_attribute("class"))
self.assertTrue(button.get_attribute("class").find(button_id) > -1)