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


Python AppCommanUtility.click_popup_close_icon方法代码示例

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


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

示例1: validate_agency_feed_lpr_live_tab

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def validate_agency_feed_lpr_live_tab(driver, agency_feed_lpr_textbox, agency_feed_lpr_item, index, ws_index):

    try:
        lpr_live_layer = driver.find_element_by_id("lprLive_layer")
        if lpr_live_layer.is_displayed():
            AppCommanUtility.click_minimize_btn(driver, "LPR", index, ws_index)

            AppCommanUtility.click_down_panel(driver, agency_feed_lpr_item, index, ws_index)

            AppCommanUtility.click_select_layer_label_container(driver, agency_feed_lpr_item, index, ws_index)

            AppCommanValidation.validate_layer_name(driver, "LPN SUSPECT", agency_feed_lpr_item, index, ws_index, boolean_value=True)

            AppCommanUtility.click_live_tab(driver, agency_feed_lpr_item, index, ws_index)

            AppCommanValidation.validate_right_panel_layer_name(driver, "LPN SUSPECT", agency_feed_lpr_item, index, ws_index)

            AppCommanValidation.validate_feature_count(driver, "lpnlive", agency_feed_lpr_item, index, ws_index)

            AppCommanUtility.click_maximize_btn(driver, "LPR", index, ws_index)

        else:
            AppCommanUtility.click_popup_close_icon(driver, "LPR")

    except Exception:

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

示例2: fill_data_search_attribute_new_query

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [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

示例3: validate_avl_live_tab

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def validate_avl_live_tab(driver, agency_feed_avl, avl_live_layer_name, index, ws_index):

    try:
        avl_live_layer = driver.find_element_by_id("avlLive_layer")
        if avl_live_layer.is_displayed():
            AppCommanUtility.click_minimize_btn(driver, agency_feed_avl, index, ws_index)

            AppCommanUtility.click_down_panel(driver, agency_feed_avl, index, ws_index)

            AppCommanUtility.click_select_layer_label_container(driver, agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_layer_name(driver, avl_live_layer_name, agency_feed_avl, index, ws_index, boolean_value=True)

            AppCommanUtility.click_live_tab(driver, agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_right_panel_layer_name(driver, avl_live_layer_name, agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_feature_count(driver, "avlLive", agency_feed_avl, index, ws_index)

            AppCommanUtility.click_maximize_btn(driver, agency_feed_avl, index, ws_index)

            TestResults.open_py_excel_pass(index, ws_index)

        else:
            AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)

    except Exception:

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

示例4: click_okbtn_historic_select_by_unit_tab

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def click_okbtn_historic_select_by_unit_tab(driver, agency_feed_avl, index, ws_index):
    try:
        avl_ok_content = driver.find_elements_by_class_name("avlOkContent")
        avl_ok_content[1].click()
        time.sleep(2)
    except Exception:
        TestFailScreenShots.get_screenshots(driver, agency_feed_avl, "click_okbtn_historic_select_by_unit_tab")
        TestLog.log_creation(agency_feed_avl, "click_okbtn_historic_select_by_unit_tab", index, ws_index)
    try:
        avl_historic_layer = driver.find_element_by_id("avlHistoricLayer_layer")
        if avl_historic_layer.is_displayed():
            AppCommanUtility.click_minimize_btn(driver, agency_feed_avl, index, ws_index)

            AppCommanUtility.click_down_panel(driver, agency_feed_avl, index, ws_index)

            AppCommanUtility.click_select_layer_label_container(driver, agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_layer_name(driver, "AVL Historic Layer", agency_feed_avl, index, ws_index, boolean_value=True)

            AppCommanValidation.validate_right_panel_layer_name(driver, "AVL Historic Layer", agency_feed_avl, index, ws_index)

            AppCommanValidation.validate_agency_feed_avl_historic_tab(driver, "avlHistoricLayer")

            AppCommanUtility.click_maximize_btn(driver, agency_feed_avl, index, ws_index)

    except Exception:
        AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:29,代码来源:SeleniumActionsAgencyFeedAVL.py

示例5: click_advanced_search_item_find_direction

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def click_advanced_search_item_find_direction(driver, tools_navigation_find_direction_item, find_direction_from_address, find_direction_to_address, tools_navigation_find_direction_item_widget_text, travel_mode_find_direction, index, ws_index):

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

    AppCommanUtility.click_widget_items(driver, tools_navigation_find_direction_item, index, ws_index)

    enter_address_find_direction(driver, "esri_dijit_Geocoder_1_input", find_direction_from_address, tools_navigation_find_direction_item, index, ws_index)
    enter_address_find_direction(driver, "esri_dijit_Geocoder_2_input", find_direction_to_address, tools_navigation_find_direction_item, index, ws_index)
#    select_find_direction_travel_mode(driver, travel_mode_find_direction, tools_navigation_find_direction_item, index, ws_index)
    time.sleep(0.5)

    click_btn_find_direction(driver, "Get Directions")
    time.sleep(1)

    AppCommanUtility.click_popup_close_icon(driver, tools_navigation_find_direction_item_widget_text)
    AppCommanUtility.widget_close_icon(driver, tools_navigation_find_direction_item_widget_text, index, ws_index)

    ToolValidation.validate_route_find_direction_tool(driver)

    TestResults.open_py_excel_pass(index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:22,代码来源:SeleniumActionsToolFindDirections.py

示例6: click_historic_select_by_area

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def click_historic_select_by_area(driver, agency_feed_lpr_distance_textbox, agency_feed_lpr, index, ws_index):

    avl_deactive_radio_button = driver.find_element_by_class_name("lprDeactiveRadioButton")
    avl_deactive_radio_button.click()

    select_geometry_tab(driver)

    AppCommanUtility.click_on_map(driver, agency_feed_lpr, index, ws_index)

    agency_feed_lpr_fill_data(driver, "Distance", agency_feed_lpr_distance_textbox, index, ws_index)

#    agency_feed_date_fill_date(driver, "Select by Area")

    click_okbtn_lpr_select_by_area(driver)

    AppCommanUtility.click_popup_close_icon(driver, "LPR")

    AppCommanUtility.widget_close_icon(driver, "LPR", index, ws_index)

    validate_select_by_area_buffer(driver)

    TestResults.open_py_excel_pass(index, ws_index)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:24,代码来源:SeleniumActionsAgencyFeedLPR.py

示例7: click_historic_select_by_area_tab

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def click_historic_select_by_area_tab(driver, agency_feed_avl_distance_textbox, agency_feed_avl, index, ws_index):

    #"avlDeactiveRadioButton"

    avl_deactive_radio_button = driver.find_element_by_class_name("avlDeactiveRadioButton")
    avl_deactive_radio_button.click()

    select_geometry_tab(driver)

    AppCommanUtility.click_on_map(driver, agency_feed_avl, index, ws_index)

    agency_feed_avl_fill_data(driver, "Distance", agency_feed_avl_distance_textbox, index, ws_index)

#    agency_feed_date_fill_date(driver, "Select by Area")

    click_okbtn_select_by_area(driver)

    AppCommanUtility.click_popup_close_icon(driver, agency_feed_avl)

    AppCommanUtility.widget_close_icon(driver, agency_feed_avl, index, ws_index)

    validate_select_by_area_buffer(driver)
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:24,代码来源:SeleniumActionsAgencyFeedAVL.py

示例8: click_lpr_select_by_lpn_okbtn

# 需要导入模块: from GeoshieldCommonFiles import AppCommanUtility [as 别名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_popup_close_icon [as 别名]
def click_lpr_select_by_lpn_okbtn(driver, agency_feed_lpr, index, ws_index):

    lpr_Ok_Content = driver.find_elements_by_class_name("lprOkContent")
    lpr_Ok_Content[1].click()
    time.sleep(2)

    avl_historic_layer = driver.find_element_by_id("historicLayer_layer")
    if avl_historic_layer.is_displayed():
        AppCommanUtility.click_minimize_btn(driver, "LPR", index, ws_index)

        AppCommanUtility.click_down_panel(driver, agency_feed_lpr, index, ws_index)

        AppCommanUtility.click_select_layer_label_container(driver, agency_feed_lpr, index, ws_index)

        AppCommanValidation.validate_layer_name(driver, "LPN Historic Layer", agency_feed_lpr, index, ws_index, boolean_value=True)

        AppCommanValidation.validate_right_panel_layer_name(driver, "LPN Historic Layer", agency_feed_lpr, index, ws_index)

        AppCommanValidation.validate_feature_count(driver, "historicLayer", agency_feed_lpr, index, ws_index)

        AppCommanUtility.click_maximize_btn(driver, "LPR", index, ws_index)

    else:
        AppCommanUtility.click_popup_close_icon(driver, "LPR")
开发者ID:AGOL007,项目名称:Python-GSHLD-Code,代码行数:26,代码来源:SeleniumActionsAgencyFeedLPR.py


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