当前位置: 首页>>代码示例>>Python>>正文


Python AppCommanUtility.fill_data_tools_fields方法代码示例

本文整理汇总了Python中GeoshieldCommonFiles.AppCommanUtility.fill_data_tools_fields方法的典型用法代码示例。如果您正苦于以下问题:Python AppCommanUtility.fill_data_tools_fields方法的具体用法?Python AppCommanUtility.fill_data_tools_fields怎么用?Python AppCommanUtility.fill_data_tools_fields使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GeoshieldCommonFiles.AppCommanUtility的用法示例。


在下文中一共展示了AppCommanUtility.fill_data_tools_fields方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: fill_data_search_attribute_new_query

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import fill_data_tools_fields [as 别名]
def fill_data_search_attribute_new_query(driver, search_attribute_select_layer_textbox_text, search_attribute_textbox_Field_text, search_attribute_textbox_Operaror_text, search_attribute_textbox_Value_text, query_name, search_attribute_tool_name, search_attribute_sub_layer_name, tools_advanced_search_search_attribute_item, index, ws_index):

    """ Method to perform fill data in new query tool """

    fill_data_advanced_search_attribure_query(driver, "Select Layer", search_attribute_select_layer_textbox_text)

    fill_data_advanced_serach_attribute_query_ddl(driver, "Select Field", tools_advanced_search_search_attribute_item, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, search_attribute_textbox_Field_text, tools_advanced_search_search_attribute_item, index, ws_index)

    fill_data_advanced_serach_attribute_query_ddl(driver, "Select Operator", tools_advanced_search_search_attribute_item, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, search_attribute_textbox_Operaror_text, tools_advanced_search_search_attribute_item, index, ws_index)

    AppCommanUtility.fill_data_tools_fields(driver, "Eg: 10", search_attribute_textbox_Value_text)
    select_query_title(driver, query_name, tools_advanced_search_search_attribute_item, index, ws_index)

    attribute_query_savequery_button = driver.find_element_by_class_name("attributeQuerySaveQueryButton")
    attribute_query_savequery_button.click()
    time.sleep(1)

    AppCommanUtility.click_popup_close_icon(driver, search_attribute_tool_name)

    attribute_query_search_button = driver.find_element_by_class_name("attributeQuerySearchButton")
    attribute_query_search_button.click()
    time.sleep(1)

    AppCommanUtility.click_popup_close_icon(driver, search_attribute_tool_name)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:28,代码来源:SeleniumActionsToolSearchAttribute.py

示例2: fill_data_search_attribute_prior_query

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import fill_data_tools_fields [as 别名]
def fill_data_search_attribute_prior_query(driver, query_name, search_attribute_tool_name, index, ws_index):

    """ Method to perform fill data in prior query """

    AppCommanUtility.fill_data_tools_fields(driver, "Select title", query_name)

    click_priority_ok_btn(driver, "OK", search_attribute_tool_name, index, ws_index)
    time.sleep(1)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:10,代码来源:SeleniumActionsToolSearchAttribute.py

示例3: fill_data_navigation_find_coordinates

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import fill_data_tools_fields [as 别名]
def fill_data_navigation_find_coordinates(driver, ddl_tool_find_coordinates, ddl_select_coordinate_system_item, find_coordinates_textbox_longitude_text, find_coordinates_textbox_latitude_text, find_coordinates_textbox_long_min_text, find_coordinates_textbox_lat_min_text, find_coordinates_textbox_long_sec, find_coordinates_textbox_lat_sec, find_coordinate_textbox_UTM_zone_text, find_coordinate_textbox_easting_text, find_coordinate_textbox_northing_text, find_coordinate_textbox_zone_text, find_coordinate_textbox_zdl_text, find_coordinate_textbox_letter_text, find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index):

    """ Method to fill the data in find coordinates tool """

    fill_data_find_coordinate_tool(driver, ddl_tool_find_coordinates, tools_navigation_find_coordinates_item, index, ws_index)
    select_ddl_item_find_coordinate(driver, ddl_select_coordinate_system_item, tools_navigation_find_coordinates_item, index, ws_index)

    if ddl_select_coordinate_system_item == "DD":
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. -100", find_coordinates_textbox_longitude_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 35", find_coordinates_textbox_latitude_text)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    elif ddl_select_coordinate_system_item == "Deg. Min.":
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. -106", find_coordinates_textbox_longitude_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 39", find_coordinates_textbox_latitude_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 24", find_coordinates_textbox_long_min_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 12", find_coordinates_textbox_lat_min_text)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    elif ddl_select_coordinate_system_item == "DMS":
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. -108", find_coordinates_textbox_longitude_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 41", find_coordinates_textbox_latitude_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 7", find_coordinates_textbox_long_min_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 17", find_coordinates_textbox_lat_min_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 3", find_coordinates_textbox_long_sec)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 32", find_coordinates_textbox_lat_sec)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    elif ddl_select_coordinate_system_item == "UTM":

        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 12", find_coordinate_textbox_UTM_zone_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 386003", find_coordinate_textbox_easting_text)
        AppCommanUtility.fill_data_tools_fields(driver, "Eg. 3552725", find_coordinate_textbox_northing_text)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    elif ddl_select_coordinate_system_item == "MGRS":

        find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "Zone", find_coordinate_textbox_zone_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "ZDL", find_coordinate_textbox_zdl_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "2-Letters", find_coordinate_textbox_letter_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordMGRSCoordinateSystem", "E-N", find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    elif ddl_select_coordinate_system_item == "USNG":

        find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "Zone", find_coordinate_textbox_zone_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "ZDL", find_coordinate_textbox_zdl_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "2-Letters", find_coordinate_textbox_letter_text, tools_navigation_find_coordinates_item, index, ws_index)
        find_coordinates_content(driver, "findCordUSNGCoordinateSystem", "E-N", find_coordinate_textbox_EN_text, tools_navigation_find_coordinates_item, index, ws_index)
        click_ok_btn(driver, tools_navigation_find_coordinates_item, index, ws_index)

    AppCommanUtility.widget_close_icon(driver, tools_navigation_find_coordinates_item, index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:54,代码来源:SeleniumActionsToolFindCoordinate.py


注:本文中的GeoshieldCommonFiles.AppCommanUtility.fill_data_tools_fields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。