本文整理汇总了Python中unit.ewslib_testcase.LIB.euh_select_drop_down_field_value方法的典型用法代码示例。如果您正苦于以下问题:Python LIB.euh_select_drop_down_field_value方法的具体用法?Python LIB.euh_select_drop_down_field_value怎么用?Python LIB.euh_select_drop_down_field_value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类unit.ewslib_testcase.LIB
的用法示例。
在下文中一共展示了LIB.euh_select_drop_down_field_value方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_euh_select_drop_down_field_value
# 需要导入模块: from unit.ewslib_testcase import LIB [as 别名]
# 或者: from unit.ewslib_testcase.LIB import euh_select_drop_down_field_value [as 别名]
def test_euh_select_drop_down_field_value(self):
langs = [u'Afrikaans', u'Espa\xf1ol',u'Ukrainian',u'\u05e2\u05d1\u05e8\u05d9\u05ea']
for lang in langs:
LIB.euh_select_drop_down_field_value("Language",lang,widget_name="Personal Data")
#make sure we click somethign else to ensure that the drop down is really set
self.set_and_check_date_value("Date of birth", "10.10.1975","Personal Data")
LIB.euh_check_default_drop_down_field_value("Language", lang, widget_name="Personal Data")
示例2: test_euh_select_drop_down_field_value_logs_warning_if_value_not_displayed
# 需要导入模块: from unit.ewslib_testcase import LIB [as 别名]
# 或者: from unit.ewslib_testcase.LIB import euh_select_drop_down_field_value [as 别名]
def test_euh_select_drop_down_field_value_logs_warning_if_value_not_displayed(self):
self.was_called = False
old_warn = LIB._warn
LIB._warn = self.mock_warn
LIB.euh_select_drop_down_field_value("Language","not a language",widget_name="Personal Data")
LIB._warn = old_warn
self.assertTrue(self.was_called)
示例3: test_euh_select_dropdown_field_value_using_OR
# 需要导入模块: from unit.ewslib_testcase import LIB [as 别名]
# 或者: from unit.ewslib_testcase.LIB import euh_select_drop_down_field_value [as 别名]
def test_euh_select_dropdown_field_value_using_OR(self):
self.navigate(data.POPUP_URL)
LIB.euh_select_drop_down_field_value("OR:ClockIn_Reason", "test")
示例4: test_euh_autocomplete_drop_down_field_value
# 需要导入模块: from unit.ewslib_testcase import LIB [as 别名]
# 或者: from unit.ewslib_testcase.LIB import euh_select_drop_down_field_value [as 别名]
def test_euh_autocomplete_drop_down_field_value(self):
self.navigate(data.PD_URL)
LIB.euh_select_drop_down_field_value("Nationality", "american", widget_name="Personal Data")