當前位置: 首頁>>代碼示例>>Python>>正文


Python AppCommanUtility.click_maximize_btn方法代碼示例

本文整理匯總了Python中GeoshieldCommonFiles.AppCommanUtility.click_maximize_btn方法的典型用法代碼示例。如果您正苦於以下問題:Python AppCommanUtility.click_maximize_btn方法的具體用法?Python AppCommanUtility.click_maximize_btn怎麽用?Python AppCommanUtility.click_maximize_btn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GeoshieldCommonFiles.AppCommanUtility的用法示例。


在下文中一共展示了AppCommanUtility.click_maximize_btn方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: validate_agency_feed_lpr_live_tab

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [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: validate_avl_live_tab

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [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

示例3: click_okbtn_historic_select_by_unit_tab

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [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

示例4: click_social_media_item_twitter

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [as 別名]
def click_social_media_item_twitter(driver, social_media_twitter, twitter_keyword_textbox_text, twitter_distance_textbox_text, twitter_refreshtime_textbox_text, index, ws_index):

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

    fill_data_twitter_text_box(driver, "Keyword", twitter_keyword_textbox_text,social_media_twitter, index, ws_index)
    fill_data_twitter_text_box(driver, "Distance (in Miles)", twitter_distance_textbox_text, social_media_twitter, index, ws_index)
    fill_data_twitter_text_box(driver, "Refresh Time (in Seconds)", twitter_refreshtime_textbox_text, social_media_twitter, index, ws_index)

    select_point_geometry(driver,social_media_twitter, index, ws_index)

    AppCommanUtility.click_minimize_btn(driver, social_media_twitter, index, ws_index)

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

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

    click_ok_button(driver, social_media_twitter, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:19,代碼來源:SeleniumActionsSocialMediaTwitter.py

示例5: click_utilities_item_selection_proximity

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [as 別名]
def click_utilities_item_selection_proximity(driver, tools_utilities_selection_item, sub_layer_name, tool_selection_textbox_distance_text, index, ws_index):

    """ Method to select the tab proximity and fill data in proximity """

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

    AppCommanUtility.select_sub_tool(driver, "Proximity", index, ws_index, class_name="removeRightBorder")

    utilities_selection_ddl_list(driver, "Primary Objects Layer", tools_utilities_selection_item, index, ws_index, class_name="proximityRowContainer", class_name_label="proximityLabelText")
    AppCommanUtility.select_ddl_item(driver, sub_layer_name, tools_utilities_selection_item, index, ws_index)

    fill_data_utilities_selection(driver, "Distance", tool_selection_textbox_distance_text, tools_utilities_selection_item, index, ws_index, class_name="proximityRowContainer", class_name_label="proximityLabelText")

    utilities_selection_ddl_list(driver, "Unit", tools_utilities_selection_item, index, ws_index, class_name="proximityRowContainer", class_name_label="proximityLabelText")
    AppCommanUtility.select_ddl_item(driver, "Miles", tools_utilities_selection_item, index, ws_index)

    utilities_selection_ddl_list(driver, "Nearby Objects Layer", tools_utilities_selection_item, index, ws_index, class_name="proximityRowContainer", class_name_label="proximityLabelText")
    AppCommanUtility.select_ddl_item(driver, sub_layer_name, tools_utilities_selection_item, index, ws_index)

    tool_selection_click_ok_btn(driver, class_name="proximityButton", index=1)
    time.sleep(1)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:23,代碼來源:SeleniumActionTestToolSelection.py

示例6: click_lpr_select_by_lpn_okbtn

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_maximize_btn [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_maximize_btn方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。