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


Python AppCommanUtility.click_widget_items方法代碼示例

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


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

示例1: click_agency_feed_avl

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_agency_feed_avl(driver, agency_feed_avl, index, ws_index):

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

    click_avl_live_select_all_checkbox(driver, agency_feed_avl, index, ws_index)

    click_okbtn_avl_live_tab(driver, agency_feed_avl, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:9,代碼來源:SeleniumActionsAgencyFeedAVL.py

示例2: click_navigation_item_google_street_view

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_navigation_item_google_street_view(driver):

    """ Method to click on google street view"""

    AppCommanUtility.click_widget_items(driver, "Google Street View")
    AppCommanUtility.click_on_map(driver)

    driver.switch_to_window(driver.window_handles[1])
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:10,代碼來源:SeleniumActionsGoogleStreetView.py

示例3: click_agency_feed_lpr

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_agency_feed_lpr(driver, agency_feed_lpr, agency_feed_lpr_textbox, index, ws_index):
    AppCommanUtility.click_widget_items(driver, agency_feed_lpr, index, ws_index)

    agency_feed_lpr_fill_data(driver, "License Plate Number", agency_feed_lpr_textbox, index, ws_index)

    click_lpr_live_okbtn(driver, agency_feed_lpr_textbox, index, ws_index)

    validate_agency_feed_lpr_live_tab(driver, agency_feed_lpr_textbox, agency_feed_lpr, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:10,代碼來源:SeleniumActionsAgencyFeedLPR.py

示例4: click_bomb_blast_item_selection

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_bomb_blast_item_selection(driver, tools_utilities_bomb_blast_item, tool_bomb_blast_bomb_type, tool_bomb_blast_widget_name, index, ws_index):

    """ Method to perform click action on bomb blast item """

    AppCommanUtility.click_widget_items(driver, tools_utilities_bomb_blast_item, index, ws_index)
    time.sleep(0.5)
    select_bomb_item(driver, tool_bomb_blast_bomb_type, tools_utilities_bomb_blast_item, index, ws_index, class_name="bombThreatIconElement")
    AppCommanUtility.click_on_map(driver, tools_utilities_bomb_blast_item, index, ws_index)
    AppCommanUtility.widget_close_icon(driver, tool_bomb_blast_widget_name, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:11,代碼來源:SeleniumActionsToolBombBlast.py

示例5: click_advanced_search_item_publish_to_AGOL

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_advanced_search_item_publish_to_AGOL(driver, tools_utilities_publish_to_AGOL_item, tool_AGOL_publish_textbox_username_text, tool_AGOL_publish_textbox_passward_text, tool_AGOL_publish_textbox_webmaptitle_text, index, ws_index):

    """ Method to click on item publish to AGOL"""

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

    fill_data_publish_to_AGOL_tab(driver, "Username", tool_AGOL_publish_textbox_username_text, tools_utilities_publish_to_AGOL_item, index, ws_index)
    fill_data_publish_to_AGOL_tab(driver, "Password", tool_AGOL_publish_textbox_passward_text, tools_utilities_publish_to_AGOL_item, index, ws_index)
    fill_data_publish_to_AGOL_tab(driver, "Webmap Title", tool_AGOL_publish_textbox_webmaptitle_text, tools_utilities_publish_to_AGOL_item, index, ws_index)

    click_okbtn_publish_to_AGOL_tab(driver, tools_utilities_publish_to_AGOL_item, index, ws_index, class_name="publishMapButton")
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:13,代碼來源:SeleniumActionsPublishAGOLPortal.py

示例6: click_social_media_item_flickr

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_social_media_item_flickr(driver, social_media_flickr, flickr_distance_textbox_text, flickr_keyword_textbox_text, flickr_refreshtime_textbox_text, flickr_unit, index, ws_index):

    AppCommanUtility.click_widget_items(driver, social_media_flickr, index, ws_index)
    fill_data_flickr_textbox(driver, "Distance", flickr_distance_textbox_text, social_media_flickr, index, ws_index)
    fill_data_flickr_textbox(driver, "Keyword", flickr_keyword_textbox_text, social_media_flickr, index, ws_index)
    fill_data_flickr_textbox(driver, "Refresh Time (in Seconds)", flickr_refreshtime_textbox_text, social_media_flickr, index, ws_index)

    fill_data_flickr_ddl_item(driver, "Unit", social_media_flickr, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, flickr_unit)

    fill_data_select_date(driver, social_media_flickr, index, ws_index)

    select_geometry_flickr_item(driver, social_media_flickr, index, ws_index)

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

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

示例7: click_social_media_item_twitter

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

示例8: click_social_media_item_you_tube

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_social_media_item_you_tube(driver, social_media_youtube, youtube_distance_textbox_text, youtube_keyword_textbox_text, youtube_refreshtime_textbox_text, youtube_units, index, ws_index):

    """ Method to click on social media item youtube """

    AppCommanUtility.click_widget_items(driver, social_media_youtube, index, ws_index)
    fill_data_youtube_textbox(driver, "Distance", youtube_distance_textbox_text, social_media_youtube, index, ws_index)
    fill_data_youtube_textbox(driver, "Keyword", youtube_keyword_textbox_text, social_media_youtube, index, ws_index)
    fill_data_youtube_textbox(driver, "Refresh Time (in Seconds)", youtube_refreshtime_textbox_text, social_media_youtube, index, ws_index)

    fill_data_select_date(driver, social_media_youtube, index, ws_index)

    fill_data_youtube_ddl_item(driver, "Units", social_media_youtube, index, ws_index)
    AppCommanUtility.select_ddl_item(driver, youtube_units)

    click_point_geometry(driver, social_media_youtube, index, ws_index, class_name="youtubePointGeometry")

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

    click_youtube_submit_button(driver,social_media_youtube, index, ws_index, class_name="youtubeSubmitButton")
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:21,代碼來源:SeleniumActionsSocialMediaYouTube.py

示例9: click_advanced_search_item_find_direction

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

示例10: click_utilities_item_selection

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

    """ Method to select the tool Selection and fill the data in buffer tab of selection"""

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

    utilities_selection_ddl_list(driver, "Select Layer", tools_utilities_selection_item, index, ws_index, class_name="selectBufferRow", class_name_label="selectBufferCellLabel")
    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="selectBufferRow", class_name_label="selectBufferCellLabel")

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

    AppCommanUtility.select_buffer_graphic_icons(driver, "Draw Point")

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

    tool_selection_click_ok_btn(driver, class_name="proximityButton", index=0)

    AppCommanUtility.click_minimize_btn(driver, tools_utilities_selection_item, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:23,代碼來源:SeleniumActionTestToolSelection.py

示例11: click_advanced_search_item_find_coordinate

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_advanced_search_item_find_coordinate(driver, tools_navigation_find_coordinates_item, index, ws_index):

    """ Method to click on tool find coordinate"""

    AppCommanUtility.click_widget_items(driver, tools_navigation_find_coordinates_item, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:7,代碼來源:SeleniumActionsToolFindCoordinate.py

示例12: click_advanced_search_item_search_attribute

# 需要導入模塊: from GeoshieldCommonFiles import AppCommanUtility [as 別名]
# 或者: from GeoshieldCommonFiles.AppCommanUtility import click_widget_items [as 別名]
def click_advanced_search_item_search_attribute(driver, advanced_search_item_search_attribute, index, ws_index):

    """ Method to perform click action on search attribute tool  """

    AppCommanUtility.click_widget_items(driver, advanced_search_item_search_attribute, index, ws_index)
開發者ID:AGOL007,項目名稱:Python-GSHLD-Code,代碼行數:7,代碼來源:SeleniumActionsToolSearchAttribute.py


注:本文中的GeoshieldCommonFiles.AppCommanUtility.click_widget_items方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。