當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。